diff options
| author | Jeffery Myers <[email protected]> | 2023-09-27 14:47:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-27 23:47:18 +0200 |
| commit | 8d5a90ea3c41119df3ee0b52630463ee55463876 (patch) | |
| tree | 5784f9f8b616edf01e13165f0f0360530f96a3c5 /src | |
| parent | 9ff47fc807d268d184504e5d0672bac8320367a5 (diff) | |
| download | raylib-8d5a90ea3c41119df3ee0b52630463ee55463876.tar.gz raylib-8d5a90ea3c41119df3ee0b52630463ee55463876.zip | |
Expose rcamera functions to the dll so they can be picked up by dll users and bindings that need the dll (#3355)
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcamera.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rcamera.h b/src/rcamera.h index de169fc3..c999370f 100644 --- a/src/rcamera.h +++ b/src/rcamera.h @@ -46,6 +46,20 @@ // Defines and Macros //---------------------------------------------------------------------------------- // Function specifiers definition + +// 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) +#if defined(__TINYC__) +#define __declspec(x) __attribute__((x)) +#endif +#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 the library as a Win32 shared library (.dll) +#endif +#endif + #ifndef RLAPI #define RLAPI // Functions defined as 'extern' by default (implicit specifiers) #endif |
