update Fri May 28 00:37:00 PDT 2010
[pkgsrc.git] / emulators / simh / patches / patch-ad
1 $NetBSD: patch-ad,v 1.1 2008/11/20 21:30:05 chuck Exp $
2
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
5 @@ -164,7 +164,20 @@
6  /* Inlining */
7  
8  #if defined (__GNUC__)                                  /* GCC */
9 +
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__
15 +#endif
16 +
17 +#ifdef __GNUC_STDC_INLINE__
18 +#define SIM_INLINE extern inline
19 +#else
20  #define SIM_INLINE inline
21 +#endif
22 +
23  #elif defined (_MSC_VER)                                /* Microsoft C Compilers */
24  #define SIM_INLINE __inline
25  #else                                                   /* default */