From 94650f0def6a813611597dc55beae16ea71bcfd3 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 8 Oct 2021 17:22:58 +0200 Subject: [PATCH] Simplified RLAPI preprocessor branching --- src/raylib.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/raylib.h b/src/raylib.h index 82c53ba15..fb52d8bc2 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -90,10 +90,9 @@ #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 +#endif + +#ifndef RLAPI #define RLAPI // Functions defined as 'extern' by default (implicit specifiers) #endif