Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added an SDL_FORCE_INLINE macro.

  • Loading branch information
icculus committed Mar 15, 2013
1 parent 04d53b2 commit 2a6428c10d39f403870888800438d9dc3b905c9a
Showing with 8 additions and 0 deletions.
  1. +8 −0 include/begin_code.h
@@ -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

0 comments on commit 2a6428c

Please sign in to comment.