Otherwise symbols wont be annotated with C linkage and we'll fail at
link time.
Currently this is worked around by wrapping the header inclusion itself.
The latter in itself fragile and not recommended.
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
*/
#pragma once
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* \file intel_debug.h
*
extern uint64_t intel_debug_flag_for_shader_stage(gl_shader_stage stage);
extern void brw_process_intel_debug_variable(void);
+
+#ifdef __cplusplus
+}
+#endif
#include "i915_drm.h"
#include "xmlconfig.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct intel_screen
{
int deviceID;
return screen->kernel_features & KERNEL_ALLOWS_PREDICATE_WRITES;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "swrast/s_context.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
struct intel_texture_object
{
return (struct intel_texture_image *) img;
}
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _INTEL_TEX_OBJ_H */