summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-10-02 14:12:03 +0200
committerRay San <[email protected]>2017-10-02 14:12:03 +0200
commitb2789949ee93028e5780e45fcc503db67fdcf6ef (patch)
tree2ac24d1d4c3bd5a99ed5512306bb81b531445681 /src/raylib.h
parent1288d6a5df6f8ebd17bc4abea1db330a4357ab5a (diff)
downloadraylib-b2789949ee93028e5780e45fcc503db67fdcf6ef.tar.gz
raylib-b2789949ee93028e5780e45fcc503db67fdcf6ef.zip
Working on Makefiles...
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/raylib.h b/src/raylib.h
index f46f276c..7d656ec8 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -74,14 +74,17 @@
//#define PLATFORM_WEB // HTML5 (emscripten, asm.js)
// Security check in case no PLATFORM_* defined
-#if !defined(PLATFORM_DESKTOP) && !defined(PLATFORM_ANDROID) && !defined(PLATFORM_RPI) && !defined(PLATFORM_WEB)
- #define PLATFORM_DESKTOP
+#if !defined(PLATFORM_DESKTOP) && \
+ !defined(PLATFORM_ANDROID) && \
+ !defined(PLATFORM_RPI) && \
+ !defined(PLATFORM_WEB)
+ #define PLATFORM_DESKTOP
#endif
-#if defined(_WIN32) && defined(BUILDING_DLL)
- #define RLAPI __declspec(dllexport) // We are building raylib as a Win32 DLL
-#elif defined(_WIN32) && defined(RAYLIB_DLL)
- #define RLAPI __declspec(dllimport) // We are using raylib as a Win32 DLL
+#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)
#endif