소스 검색

Simplified RLAPI preprocessor branching

Ray 3 년 전
부모
커밋
94650f0def
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3 4
      src/raylib.h

+ 3 - 4
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