diff options
| author | raysan5 <[email protected]> | 2020-01-19 11:23:27 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-01-19 11:23:27 +0100 |
| commit | fe0d04c8796234d53b474e02dd4d8e198d32ef99 (patch) | |
| tree | 97d6b4552abdd474fe90e39679b443819b275f07 /src | |
| parent | 406373caa93a018393f70d6bd1de0fd7acfdea03 (diff) | |
| download | raylib-fe0d04c8796234d53b474e02dd4d8e198d32ef99.tar.gz raylib-fe0d04c8796234d53b474e02dd4d8e198d32ef99.zip | |
Review functions modifiers
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -64,13 +64,15 @@ #if defined(RLGL_STANDALONE) #define RAYMATH_STANDALONE #define RAYMATH_HEADER_ONLY - - #if defined(_WIN32) && defined(BUILD_LIBTYPE_SHARED) - #define RLAPI __declspec(dllexport) // We are building raylib as a Win32 shared library (.dll) - #elif defined(_WIN32) && defined(USE_LIBTYPE_SHARED) - #define RLAPI __declspec(dllimport) // We are using raylib as a Win32 shared library (.dll) - #else - #define RLAPI // We are building or using raylib as a static library (or Linux shared library) + + #define RLAPI // We are building or using rlgl as a static library (or Linux shared library) + + #if defined(_WIN32) + #if defined(BUILD_LIBTYPE_SHARED) + #define RLAPI __declspec(dllexport) // We are building raylib as a Win32 shared library (.dll) + #elif defined(USE_LIBTYPE_SHARED) + #define RLAPI __declspec(dllimport) // We are using raylib as a Win32 shared library (.dll) + #endif #endif // Allow custom memory allocators |
