diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-21 17:25:00 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-05-21 17:25:00 +0000 |
commit | c82f076e69aa09a01d00a75b482bc9f295549565 (patch) | |
tree | 7eb5b585f58c6ce347afff40652791a2c1f15c74 /fixincludes/tests | |
parent | de4655a29cb840b4fbf2afd829e07cda08a5ec63 (diff) | |
download | gcc-c82f076e69aa09a01d00a75b482bc9f295549565.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223497 138bc75d-0d04-0410-961f-82ee72b054a4
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 deabd5e4473..834b2e52c33 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 00000000000..3a40c01cabe --- /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 d0cd37e2574..5d66f8be291 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, |