Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added an SDL_FORCE_INLINE macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 15, 2013
1 parent 04d53b2 commit 2a6428c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/begin_code.h
Expand Up @@ -128,6 +128,14 @@
#define __inline__
#endif

#if defined(_MSC_VER)
#define SDL_FORCE_INLINE __forceinline
#elif defined(__GNUC__) || defined(__clang__)
#define SDL_FORCE_INLINE __attribute__((always_inline)) static inline
#else
#define SDL_FORCE_INLINE static __inline__
#endif

/* Apparently this is needed by several Windows compilers */
#if !defined(__MACH__)
#ifndef NULL
Expand Down

0 comments on commit 2a6428c

Please sign in to comment.