1 $NetBSD: patch-ad,v 1.1 2008/11/20 21:30:05 chuck Exp $
3 --- sim_defs.h.orig 2008-11-20 15:36:35.000000000 -0500
4 +++ sim_defs.h 2008-11-20 15:40:40.000000000 -0500
8 #if defined (__GNUC__) /* GCC */
10 +#if defined(__APPLE_CC__) && (__APPLE_CC__ > 5400) && \
11 + (__APPLE_CC__ < 5488) && (__STDC_VERSION__ >= 199901L) && \
12 + !defined(__GNUC_STDC_INLINE__)
13 +/* old versions of xcode (3.0) don't define this, and they should... */
14 +#define __GNUC_STDC_INLINE__
17 +#ifdef __GNUC_STDC_INLINE__
18 +#define SIM_INLINE extern inline
20 #define SIM_INLINE inline
23 #elif defined (_MSC_VER) /* Microsoft C Compilers */
24 #define SIM_INLINE __inline