summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-10-07 11:17:45 -0700
committerGitHub <[email protected]>2021-10-07 20:17:45 +0200
commit33ed452439a6b28a39f190714e18ee5dcb2e7673 (patch)
treeafa5522ad45f0d559b59804994050bd2a5d11258 /src/raylib.h
parentbb2763cc1faea71c2f21a66b9f0e0bd43532a04c (diff)
downloadraylib-33ed452439a6b28a39f190714e18ee5dcb2e7673.tar.gz
raylib-33ed452439a6b28a39f190714e18ee5dcb2e7673.zip
Fix dll exports so that raylib builds in visual studio again. (#2037)
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/raylib.h b/src/raylib.h
index ef737913..82c53ba1 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -83,11 +83,6 @@
#define RAYLIB_VERSION "4.0"
-// Function specifiers definition
-#ifndef RLAPI
- #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)
@@ -95,7 +90,11 @@
#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)
+ #else
+ #define RLAPI // Functions defined as 'extern' by default (implicit specifiers)
#endif
+#else
+ #define RLAPI // Functions defined as 'extern' by default (implicit specifiers)
#endif
//----------------------------------------------------------------------------------