Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include handle the difference between C99 and GNUC semantics...
details: https://anonhg.NetBSD.org/src/rev/188ec847625f
branches: trunk
changeset: 754568:188ec847625f
user: plunky <plunky%NetBSD.org@localhost>
date: Tue May 04 09:07:11 2010 +0000
description:
handle the difference between C99 and GNUC semantics of inline
functions with external linkage, by using "inline" for STDC and
"extern inline" for GNUC
(as noted by joerg@, using static inline may be clearer)
diffstat:
include/signal.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 1fb6ad08e1f1 -r 188ec847625f include/signal.h
--- a/include/signal.h Tue May 04 07:58:28 2010 +0000
+++ b/include/signal.h Tue May 04 09:07:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: signal.h,v 1.51 2009/01/11 03:04:12 christos Exp $ */
+/* $NetBSD: signal.h,v 1.52 2010/05/04 09:07:11 plunky Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -101,7 +101,11 @@
#endif
#ifndef _SIGINLINE
+#if defined(__GNUC__) && !defined(__GNUC_STDC_INLINE__)
#define _SIGINLINE extern __inline
+#else
+#define _SIGINLINE __inline
+#endif
#endif
_SIGINLINE int
@@ -149,7 +153,7 @@
__sigfillset(set);
return (0);
}
-#endif /* (__GNUC__ && __STDC__) || _LIBC */
+#endif /* (__GNUC__ && __STDC__) || _SIGINLINE */
#endif /* !__LIBC12_SOURCE__ */
/*
Home |
Main Index |
Thread Index |
Old Index