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

Commit

Permalink
Fixed compiler warnings in Mac Xcode builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 3, 2013
1 parent a85eacc commit 3dd206f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/begin_code.h
Expand Up @@ -128,13 +128,15 @@
#define __inline__
#endif

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

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

0 comments on commit 3dd206f

Please sign in to comment.