Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure __inline__ isn't defined before #defining it, since some co…
…mpilers

 (like Sun Studio) have this as a predefined macro.

   Fixes Bugzilla #434.
  • Loading branch information
icculus committed Jun 15, 2007
1 parent 49d3956 commit 76ad71c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/begin_code.h
Expand Up @@ -123,7 +123,9 @@
#define SDL_INLINE_OKAY
#else
#if !defined(__MRC__) && !defined(_SGI_SOURCE)
#ifndef __inline__
#define __inline__ inline
#endif
#define SDL_INLINE_OKAY
#endif /* Not a funky compiler */
#endif /* Visual C++ */
Expand Down

0 comments on commit 76ad71c

Please sign in to comment.