summaryrefslogtreecommitdiff
path: root/fixincludes/tests
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-03 03:11:50 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-03 03:11:50 +0000
commitefb8e7bfec8ddbeee198a20c1bf6f90e909e4a2a (patch)
treeb17aba423784478af9bcabd9bda2a2c51b24007c /fixincludes/tests
parent7c12eaee225e80811d19ad4bdc7f817810c1fc3c (diff)
downloadgcc-efb8e7bfec8ddbeee198a20c1bf6f90e909e4a2a.tar.gz
* inclhack.def (glibc_c99_inline_1): New.
* inclhack.def (glibc_c99_inline_2): New. * inclhack.def (glibc_c99_inline_3): New. * inclhack.def (glibc_c99_inline_4): New. * fixincl.x: Regenerate. * tests/base/bits/string2.h: New. * tests/base/sys/sysmacros.h: New. * tests/base/sys/stat.h: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'fixincludes/tests')
-rw-r--r--fixincludes/tests/base/bits/string2.h18
-rw-r--r--fixincludes/tests/base/sys/stat.h14
-rw-r--r--fixincludes/tests/base/sys/sysmacros.h18
3 files changed, 50 insertions, 0 deletions
diff --git a/fixincludes/tests/base/bits/string2.h b/fixincludes/tests/base/bits/string2.h
new file mode 100644
index 00000000000..0d37faaad69
--- /dev/null
+++ b/fixincludes/tests/base/bits/string2.h
@@ -0,0 +1,18 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/bits/string2.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( GLIBC_C99_INLINE_3_CHECK )
+# if defined(__cplusplus) || __STDC_VERSION__ >= 19901L
+# define __STRING_INLINE inline
+# else
+# define __STRING_INLINE extern __inline
+# endif
+#endif /* GLIBC_C99_INLINE_3_CHECK */
diff --git a/fixincludes/tests/base/sys/stat.h b/fixincludes/tests/base/sys/stat.h
index c2b2fb6d564..51fe835d3a6 100644
--- a/fixincludes/tests/base/sys/stat.h
+++ b/fixincludes/tests/base/sys/stat.h
@@ -14,6 +14,20 @@
#endif /* ALPHA___EXTERN_PREFIX_SYS_STAT_CHECK */
+#if defined( GLIBC_C99_INLINE_2_CHECK )
+#if __STDC_VERSION__ < 199901L
+extern
+#endif
+__inline__ int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
+#if __STDC_VERSION__ < 199901L
+extern
+#endif
+__inline__ int
+__NTH (fstat64 (int __fd, struct stat64 *__statbuf))
+{}
+#endif /* GLIBC_C99_INLINE_2_CHECK */
+
+
#if defined( RS6000_FCHMOD_CHECK )
extern int fchmod(int, mode_t);
#endif /* RS6000_FCHMOD_CHECK */
diff --git a/fixincludes/tests/base/sys/sysmacros.h b/fixincludes/tests/base/sys/sysmacros.h
new file mode 100644
index 00000000000..6891a675006
--- /dev/null
+++ b/fixincludes/tests/base/sys/sysmacros.h
@@ -0,0 +1,18 @@
+/* DO NOT EDIT THIS FILE.
+
+ It has been auto-edited by fixincludes from:
+
+ "fixinc/tests/inc/sys/sysmacros.h"
+
+ This had to be done to correct non-standard usages in the
+ original, manufacturer supplied header file. */
+
+
+
+#if defined( GLIBC_C99_INLINE_4_CHECK )
+__extension__
+#if __STDC_VERSION__ < 19901L
+extern
+#endif
+ __inline unsigned int
+#endif /* GLIBC_C99_INLINE_4_CHECK */