From 6a366ca8ca33cf0d82995afc149ca88596f06e35 Mon Sep 17 00:00:00 2001 From: Audi Nugraha Date: Sat, 9 Jul 2022 18:00:39 +0700 Subject: [PATCH] Update raylib.h --- src/raylib.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/raylib.h b/src/raylib.h index a2d8b3ca0..12aba4d96 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -86,12 +86,10 @@ // NOTE: Microsoft specifiers to tell compiler that symbols are imported/exported from a .dll #if defined(_WIN32) #if defined(BUILD_LIBTYPE_SHARED) - // We are building the library as a Win32 shared library (.dll) #if defined(__TINYC__) - #define RLAPI __attribute__(dllexport) - #else - #define RLAPI __declspec(dllexport) + #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