Index: mojo/public/c/include/MGL/mgl_types.h |
diff --git a/mojo/public/c/gpu/MGL/mgl_types.h b/mojo/public/c/include/MGL/mgl_types.h |
similarity index 73% |
rename from mojo/public/c/gpu/MGL/mgl_types.h |
rename to mojo/public/c/include/MGL/mgl_types.h |
index b28aee610b9a4b061bb5e2e7887765523ec92f03..a38e25475349828b331aa0d9f9c41e1db3101de6 100644 |
--- a/mojo/public/c/gpu/MGL/mgl_types.h |
+++ b/mojo/public/c/include/MGL/mgl_types.h |
@@ -4,12 +4,12 @@ |
// Note: This header should be compilable as C. |
-#ifndef MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ |
-#define MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ |
+#ifndef MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |
+#define MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |
-#ifdef __cplusplus |
-extern "C" { |
-#endif |
+#include <mojo/macros.h> |
+ |
+MOJO_BEGIN_EXTERN_C |
typedef struct MGLContextPrivate* MGLContext; |
typedef void (*MGLContextLostCallback)(void* closure); |
@@ -19,8 +19,6 @@ typedef void (*MGLSignalSyncPointCallback)(void* closure); |
// type and calling convention before use. |
typedef void (*MGLMustCastToProperFunctionPointerType)(void); |
-#ifdef __cplusplus |
-} // extern "C" |
-#endif |
+MOJO_END_EXTERN_C |
-#endif // MOJO_PUBLIC_C_GPU_MGL_TYPES_H_ |
+#endif // MOJO_PUBLIC_C_INCLUDE_MGL_TYPES_H_ |