mirror of git://gcc.gnu.org/git/gcc.git
system.h [...]: Wrap C function declarations in extern "C".
* system.h [__cplusplus]: Wrap C function declarations in extern "C". -This line, and those below, will be ignored-- M ChangeLog M system.h From-SVN: r176748
This commit is contained in:
parent
4d1c74214e
commit
a024b70f10
|
@ -1,3 +1,7 @@
|
||||||
|
2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
|
* system.h [__cplusplus]: Wrap C function declarations in extern "C".
|
||||||
|
|
||||||
2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,10 @@ along with GCC; see the file COPYING3. If not see
|
||||||
# define fputc(C, Stream) fputc_unlocked (C, Stream)
|
# define fputc(C, Stream) fputc_unlocked (C, Stream)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
# ifdef HAVE_CLEARERR_UNLOCKED
|
# ifdef HAVE_CLEARERR_UNLOCKED
|
||||||
# undef clearerr
|
# undef clearerr
|
||||||
# define clearerr(Stream) clearerr_unlocked (Stream)
|
# define clearerr(Stream) clearerr_unlocked (Stream)
|
||||||
|
@ -164,6 +168,10 @@ extern int fprintf_unlocked (FILE *, const char *, ...);
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* ??? Glibc's fwrite/fread_unlocked macros cause
|
/* ??? Glibc's fwrite/fread_unlocked macros cause
|
||||||
|
@ -286,10 +294,18 @@ extern int errno;
|
||||||
here. These checks will be in the undefined state while configure
|
here. These checks will be in the undefined state while configure
|
||||||
is running so be careful to test "defined (HAVE_DECL_*)". */
|
is running so be careful to test "defined (HAVE_DECL_*)". */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined (HAVE_DECL_ABORT) && !HAVE_DECL_ABORT
|
#if defined (HAVE_DECL_ABORT) && !HAVE_DECL_ABORT
|
||||||
extern void abort (void);
|
extern void abort (void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HAVE_SYS_STAT_H
|
#if HAVE_SYS_STAT_H
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue