From: Mikko Rasa Date: Tue, 5 Sep 2023 09:56:04 +0000 (+0300) Subject: Reformat gl.h to make it easier to read X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=d1e564a8ccb782283be7f2b746adb9aa177835ee;p=libs%2Fgl.git Reformat gl.h to make it easier to read --- diff --git a/source/backends/opengl/gl.h b/source/backends/opengl/gl.h index f27b63fe..28ac186f 100644 --- a/source/backends/opengl/gl.h +++ b/source/backends/opengl/gl.h @@ -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 -#include -#undef extern -#pragma clang diagnostic pop + #pragma clang diagnostic push + #pragma clang diagnostic ignored "-Wkeyword-macro" + #define extern extern __attribute__((weak_import)) + #include + #include + #undef extern + #pragma clang diagnostic pop + #elif defined(__ANDROID__) -#include -#include -typedef double GLdouble; -typedef long long GLint64; -#else -#ifdef _WIN32 -#ifndef WINAPI -#if defined(_ARM_) -#define WINAPI + #include + #include + 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 -#include + #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 + #include #endif #ifndef APIENTRY -#define APIENTRY + #define APIENTRY #endif #endif