diff include/begin_code.h @ 274:051b991765ba

David Snopek added Borland compiler support
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Feb 2002 17:45:24 +0000
parents b8688cfdc232
children 2f5a6062db86
line wrap: on
line diff
--- a/include/begin_code.h	Tue Jan 22 21:14:36 2002 +0000
+++ b/include/begin_code.h	Wed Feb 13 17:45:24 2002 +0000
@@ -41,7 +41,15 @@
 #  endif
 # else
 # ifdef WIN32
-#  define DECLSPEC	__declspec(dllexport)
+#  ifdef __BORLANDC__
+#   ifdef BUILD_SDL
+#    define DECLSPEC __declspec(dllexport)
+#   else
+#    define DECLSPEC __declspec(dllimport)
+#   endif
+#  else
+#   define DECLSPEC	__declspec(dllexport)
+#  endif
 # else
 #  define DECLSPEC
 # endif
@@ -78,7 +86,7 @@
 #define SDL_INLINE_OKAY
 #else
 /* Add any special compiler-specific cases here */
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(__BORLANDC__)
 #define __inline__	__inline
 #define SDL_INLINE_OKAY
 #else