pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/simh make SIM_INLINE functions in the VAX em...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b57ad219f31f
branches: trunk
changeset: 550385:b57ad219f31f
user: chuck <chuck%pkgsrc.org@localhost>
date: Thu Nov 20 21:30:05 2008 +0000
description:
make SIM_INLINE functions in the VAX emulator compile properly when
c99 style-inline functions are in effect (e.g. on Darwin and when
__GNUC_STDC_INLINE__ is defined).
(this was reported back when 3.8 came out on the simh mailing list,
so hopefully Bob Supnik and crew will include a fix in the next release,
when ever that is.)
diffstat:
emulators/simh/distinfo | 3 ++-
emulators/simh/patches/patch-ad | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r 21ae66ef3b57 -r b57ad219f31f emulators/simh/distinfo
--- a/emulators/simh/distinfo Thu Nov 20 20:36:18 2008 +0000
+++ b/emulators/simh/distinfo Thu Nov 20 21:30:05 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2008/11/01 05:15:42 obache Exp $
+$NetBSD: distinfo,v 1.14 2008/11/20 21:30:05 chuck Exp $
SHA1 (simhv38-0.zip) = e1afbebede7dc4b2e0f7b13fca3ee6aa8d34f9c1
RMD160 (simhv38-0.zip) = f1986d45f9b17a905957d1dca4eaa70098a7cae6
@@ -6,3 +6,4 @@
SHA1 (patch-aa) = 427aa8eca1f1ac17f9279708e666d066b24dde7e
SHA1 (patch-ab) = 85b36e3d92a2bfbd886dbb2e08a0af967edeb0bd
SHA1 (patch-ac) = 78ecdc9abe248eb8c9a1dc3c297a4a7e5eb812d6
+SHA1 (patch-ad) = 4ab9108d50bc89b41aea3efdf58cc95089137937
diff -r 21ae66ef3b57 -r b57ad219f31f emulators/simh/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/simh/patches/patch-ad Thu Nov 20 21:30:05 2008 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1 2008/11/20 21:30:05 chuck Exp $
+
+--- sim_defs.h.orig 2008-11-20 15:36:35.000000000 -0500
++++ sim_defs.h 2008-11-20 15:40:40.000000000 -0500
+@@ -164,7 +164,20 @@
+ /* Inlining */
+
+ #if defined (__GNUC__) /* GCC */
++
++#if defined(__APPLE_CC__) && (__APPLE_CC__ > 5400) && \
++ (__APPLE_CC__ < 5488) && (__STDC_VERSION__ >= 199901L) && \
++ !defined(__GNUC_STDC_INLINE__)
++/* old versions of xcode (3.0) don't define this, and they should... */
++#define __GNUC_STDC_INLINE__
++#endif
++
++#ifdef __GNUC_STDC_INLINE__
++#define SIM_INLINE extern inline
++#else
+ #define SIM_INLINE inline
++#endif
++
+ #elif defined (_MSC_VER) /* Microsoft C Compilers */
+ #define SIM_INLINE __inline
+ #else /* default */
Home |
Main Index |
Thread Index |
Old Index