diff options
| author | raysan5 <[email protected]> | 2021-10-05 18:33:41 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-10-05 18:33:41 +0200 |
| commit | b972b8d324621e7a9df048f0d2d3f3f322f061dc (patch) | |
| tree | a310699162e99e814908b5285c1068d0e4a7dfc8 /src/raylib.h | |
| parent | 9f4a83985325d83d217f4061f84eb4869ae46d48 (diff) | |
| download | raylib-b972b8d324621e7a9df048f0d2d3f3f322f061dc.tar.gz raylib-b972b8d324621e7a9df048f0d2d3f3f322f061dc.zip | |
REVIEWED: API functions specifiers
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h index 7554f75f..b1bcc3b9 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -83,15 +83,18 @@ #define RAYLIB_VERSION "4.0" +// Function specifiers definition #ifndef RLAPI - #define RLAPI // We are building or using rlgl as a static library (or Linux shared library) + #define RLAPI // Functions defined as 'extern' by default (implicit specifiers) #endif +// Function specifiers in case library is build/used as a shared library (Windows) +// NOTE: Microsoft specifiers to tell compiler that symbols are imported/exported from a .dll #if defined(_WIN32) #if defined(BUILD_LIBTYPE_SHARED) - #define RLAPI __declspec(dllexport) // We are building raylib as a Win32 shared library (.dll) + #define RLAPI __declspec(dllexport) // We are building the library 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) + #define RLAPI __declspec(dllimport) // We are using the library as a Win32 shared library (.dll) #endif #endif |
