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

Fixed compiler warnings in Mac Xcode builds.

  • Loading branch information
icculus committed Apr 3, 2013
1 parent a85eacc commit 3dd206f9b98468cc25652d9dfb6901d5bbf4e965
Showing with 2 additions and 0 deletions.
  1. +2 −0 include/begin_code.h
@@ -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__)

0 comments on commit 3dd206f

Please sign in to comment.