diff options
| author | raysan5 <[email protected]> | 2020-04-01 11:06:05 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-04-01 11:06:05 +0200 |
| commit | adb20569befc3836d9f5fd8f98edb93ff676cfd8 (patch) | |
| tree | 2829278e3d015200fcff07dd252e6dc471a27f1e /src/raylib.h | |
| parent | 07f3a65a96e83976d9d4533caadff6b4b615b05c (diff) | |
| download | raylib-adb20569befc3836d9f5fd8f98edb93ff676cfd8.tar.gz raylib-adb20569befc3836d9f5fd8f98edb93ff676cfd8.zip | |
Review shared library building
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index 791da41f..d2dc8a54 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -76,15 +76,17 @@ #include <stdarg.h> // Required for: va_list - Only used by TraceLogCallback -#define RLAPI // We are building or using raylib as a static library (or Linux shared library) - #if defined(_WIN32) // Microsoft attibutes to tell compiler that symbols are imported/exported from a .dll #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) + #else + #define RLAPI // We are building or using raylib as a static library #endif +#else + #define RLAPI // We are building or using raylib as a static library (or Linux shared library) #endif //---------------------------------------------------------------------------------- |
