changeset 85:60c7960354e0

Added support for Visual C++ inline keyword
author Sam Lantinga <slouken@lokigames.com>
date Mon, 02 Jul 2001 00:10:19 +0000
parents c7f1b0647448
children 13e4c612098d
files include/begin_code.h
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/include/begin_code.h	Mon Jul 02 00:10:05 2001 +0000
+++ b/include/begin_code.h	Mon Jul 02 00:10:19 2001 +0000
@@ -69,10 +69,15 @@
 #define SDL_INLINE_OKAY
 #else
 /* Add any special compiler-specific cases here */
-#if !defined(_MSC_VER) && !defined(__MRC__) && !defined(_SGI_SOURCE)
+#if defined(_MSC_VER)
+#define __inline__	__inline
+#define SDL_INLINE_OKAY
+#else
+#if !defined(__MRC__) && !defined(_SGI_SOURCE)
 #define __inline__ inline
 #define SDL_INLINE_OKAY
 #endif /* Not a funky compiler */
+#endif /* Visual C++ */
 #endif /* GNU C */
 #endif /* SDL_INLINE_OKAY */