From fe0d04c8796234d53b474e02dd4d8e198d32ef99 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 19 Jan 2020 11:23:27 +0100 Subject: [PATCH] Review functions modifiers --- src/rlgl.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index 9b281f6e9..1d0adc421 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -64,13 +64,15 @@ #if defined(RLGL_STANDALONE) #define RAYMATH_STANDALONE #define RAYMATH_HEADER_ONLY + + #define RLAPI // We are building or using rlgl as a static library (or Linux shared library) - #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) + #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