Skip to content

Commit 049eeee

Browse files
committed
Visual Studio versions older then 6.0 do not support __forceinline
1 parent 6f8fbf5 commit 049eeee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/SDL3/SDL_begin_code.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
#endif /* SDL_INLINE not defined */
432432

433433
#ifndef SDL_FORCE_INLINE
434-
#ifdef _MSC_VER
434+
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
435435
#define SDL_FORCE_INLINE __forceinline
436436
#elif ( (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) )
437437
#define SDL_FORCE_INLINE __attribute__((always_inline)) static __inline__

0 commit comments

Comments
 (0)