diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2015-05-21 17:25:00 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2015-05-21 13:25:00 -0400 |
commit | 9846edffa4b32333e313d5760e16efdb3dae5291 (patch) | |
tree | 7eb5b585f58c6ce347afff40652791a2c1f15c74 /fixincludes/tests | |
parent | e3592e196a92f72d6195023b24f4d1aab9c64242 (diff) | |
download | gcc-9846edffa4b32333e313d5760e16efdb3dae5291.zip gcc-9846edffa4b32333e313d5760e16efdb3dae5291.tar.gz gcc-9846edffa4b32333e313d5760e16efdb3dae5291.tar.bz2 |
inclhack.def (aix_externc): New fix.
* inclhack.def (aix_externc): New fix.
(aix_externcpp[12]): New fix.
* fixincl.x: Regenerate.
* test/base/ctype.h [AIX_EXTERNC_CHECK]: New test.
* test/base/sys/socket.h [AIX_EXTERNCPP[12]_CHECK]: New test.
* test/base/fcntl.h: New file.
From-SVN: r223497
Diffstat (limited to 'fixincludes/tests')
-rw-r--r-- | fixincludes/tests/base/ctype.h | 17 | ||||
-rw-r--r-- | fixincludes/tests/base/fcntl.h | 25 | ||||
-rw-r--r-- | fixincludes/tests/base/sys/socket.h | 12 |
3 files changed, 54 insertions, 0 deletions
diff --git a/fixincludes/tests/base/ctype.h b/fixincludes/tests/base/ctype.h index deabd5e..834b2e5 100644 --- a/fixincludes/tests/base/ctype.h +++ b/fixincludes/tests/base/ctype.h @@ -7,6 +7,18 @@ This had to be done to correct non-standard usages in the original, manufacturer supplied header file. */ +#ifndef FIXINC_WRAP_CTYPE_H_AIX_EXTERNC +#define FIXINC_WRAP_CTYPE_H_AIX_EXTERNC 1 + +#ifdef __cplusplus +extern "C" { +#endif + + +#if defined( AIX_EXTERNC_CHECK ) +extern int __n_pthreads; + +#endif /* AIX_EXTERNC_CHECK */ #if defined( HPUX10_CTYPE_DECLARATIONS1_CHECK ) @@ -63,3 +75,8 @@ extern int __toupper(); # define isalpha(__c) (__SB_masks ? (int)__SB_masks[__c] & _IS #endif /* HPUX_CTYPE_MACROS_CHECK */ +#ifdef __cplusplus +} +#endif + +#endif /* FIXINC_WRAP_CTYPE_H_AIX_EXTERNC */ diff --git a/fixincludes/tests/base/fcntl.h b/fixincludes/tests/base/fcntl.h new file mode 100644 index 0000000..3a40c01 --- /dev/null +++ b/fixincludes/tests/base/fcntl.h @@ -0,0 +1,25 @@ +/* DO NOT EDIT THIS FILE. + + It has been auto-edited by fixincludes from: + + "fixinc/tests/inc/fcntl.h" + + This had to be done to correct non-standard usages in the + original, manufacturer supplied header file. */ + +#ifndef FIXINC_WRAP_FCNTL_H_AIX_EXTERNC +#define FIXINC_WRAP_FCNTL_H_AIX_EXTERNC 1 + +#ifdef __cplusplus +extern "C" { +#endif + + +#if defined( AAB_AIX_FCNTL_CHECK ) + +#endif /* AAB_AIX_FCNTL_CHECK */ +#ifdef __cplusplus +} +#endif + +#endif /* FIXINC_WRAP_FCNTL_H_AIX_EXTERNC */ diff --git a/fixincludes/tests/base/sys/socket.h b/fixincludes/tests/base/sys/socket.h index d0cd37e..5d66f8b 100644 --- a/fixincludes/tests/base/sys/socket.h +++ b/fixincludes/tests/base/sys/socket.h @@ -9,6 +9,18 @@ +#if defined( AIX_EXTERNCPP1_CHECK ) +#ifdef __cplusplus +extern "C++" { +#endif /* AIX_EXTERNCPP1_CHECK */ + + +#if defined( AIX_EXTERNCPP2_CHECK ) +} /* extern "C++" */ +#else /* __cplusplus */ +#endif /* AIX_EXTERNCPP2_CHECK */ + + #if defined( HPUX11_EXTERN_SENDFILE_CHECK ) #ifndef _APP32_64BIT_OFF_T extern sbsize_t sendfile __((int, int, off_t, bsize_t, |