summaryrefslogtreecommitdiffstats
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorkristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-25 23:51:47 +0000
committerkristerw <kristerw@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-25 23:51:47 +0000
commit759bfb144806f9fe3aa475ff00b44b52350a45eb (patch)
tree5b086663c4800582cbd23273971f6a22423cdd80 /fixincludes/inclhack.def
parent2197fd815118cf260449f0a3b922eee86e82db89 (diff)
downloadppe42-gcc-759bfb144806f9fe3aa475ff00b44b52350a45eb.tar.gz
ppe42-gcc-759bfb144806f9fe3aa475ff00b44b52350a45eb.zip
2007-07-24 Krister Walfridsson <cato@df.lth.se>
PR target/30058 * inclhack.def (netbsd_c99_inline_2): New. * fixincl.x: Regenerate. * tests/base/signal.h: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126937 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r--fixincludes/inclhack.def19
1 files changed, 19 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def
index fbc1b2a62d4..f7fbd8ce8aa 100644
--- a/fixincludes/inclhack.def
+++ b/fixincludes/inclhack.def
@@ -2608,6 +2608,25 @@ fix = {
};
+fix = {
+ hackname = netbsd_c99_inline_2;
+ mach = *-*-netbsd*;
+ files = signal.h;
+ select = "#define _SIGINLINE extern __inline";
+
+ c_fix = format;
+ c_fix_arg = <<- _EOArg_
+ #ifdef __GNUC_STDC_INLINE__
+ #define _SIGINLINE extern __attribute__((__gnu_inline__)) __inline
+ #else
+ %0
+ #endif
+ _EOArg_;
+
+ test_text = "#define _SIGINLINE extern __inline";
+};
+
+
/*
* NetBSD has a semicolon after the ending '}' for some extern "C".
*/
OpenPOWER on IntegriCloud