]> git.tdb.fi Git - libs/gl.git/commitdiff
Reformat gl.h to make it easier to read
authorMikko Rasa <tdb@tdb.fi>
Tue, 5 Sep 2023 09:56:04 +0000 (12:56 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 5 Sep 2023 09:56:04 +0000 (12:56 +0300)
source/backends/opengl/gl.h

index f27b63fe8cf68c1ff302511907be0984fa9eb9e8..28ac186f343946af3ef0dbe1304e1a28007a6ecc 100644 (file)
@@ -2,43 +2,46 @@
 #define MSP_GL_GL_H_
 
 #ifdef __APPLE__
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wkeyword-macro"
-#define extern extern __attribute__((weak_import))
-#include <OpenGL/gl.h>
-#include <OpenGL/glext.h>
-#undef extern
-#pragma clang diagnostic pop
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wkeyword-macro"
+ #define extern extern __attribute__((weak_import))
+ #include <OpenGL/gl.h>
+ #include <OpenGL/glext.h>
+ #undef extern
+ #pragma clang diagnostic pop
+
 #elif defined(__ANDROID__)
-#include <GLES3/gl3.h>
-#include <GLES3/gl3ext.h>
-typedef double GLdouble;
-typedef long long GLint64;
-#else
-#ifdef _WIN32
-#ifndef WINAPI
-#if defined(_ARM_)
-#define WINAPI
+ #include <GLES3/gl3.h>
+ #include <GLES3/gl3ext.h>
+ typedef double GLdouble;
+ typedef long long GLint64;
+
 #else
-#define WINAPI __stdcall
-#endif
-#endif
-#ifndef APIENTRY
-#define APIENTRY WINAPI
-#endif
-#ifndef DECLSPEC_IMPORT
-#define DECLSPEC_IMPORT __declspec(dllimport)
-#endif
-#ifndef WINGDIAPI
-#define WINGDIAPI DECLSPEC_IMPORT
-#endif
-#endif
-#include <GL/gl.h>
-#include <GL/glext.h>
+ #ifdef _WIN32
+  #ifndef WINAPI
+   #if defined(_ARM_)
+    #define WINAPI
+   #else
+    #define WINAPI __stdcall
+   #endif
+  #endif
+  #ifndef APIENTRY
+   #define APIENTRY WINAPI
+  #endif
+  #ifndef DECLSPEC_IMPORT
+   #define DECLSPEC_IMPORT __declspec(dllimport)
+  #endif
+  #ifndef WINGDIAPI
+   #define WINGDIAPI DECLSPEC_IMPORT
+  #endif
+ #endif
+
+ #include <GL/gl.h>
+ #include <GL/glext.h>
 #endif
 
 #ifndef APIENTRY
-#define APIENTRY
+ #define APIENTRY
 #endif
 
 #endif