gcc/fixincludes/tests/base/iso/stdio_iso.h
Rainer Orth 2252a8025d Only declare gets for C++ < 2014 on Solaris (PR libstdc++/78979)
PR libstdc++/78979
	* inclhack.def (solaris_gets_c11, solaris_gets_cxx14)
	(solaris_std_gets_cxx14, solaris_stdlib_noreturn): New fixes.
	* fixincl.x: Regenerate.
	* tests/base/iso/stdio_iso.h [SOLARIS_GETS_C11_CHECK,
	SOLARIS_GETS_CXX14_CHECK, SOLARIS_STD_GETS_CXX14_CHECK,
	SOLARIS_STDLIB_NORETURN_CHECK]: New tests.

From-SVN: r244428
2017-01-13 12:09:13 +00:00

28 lines
805 B
C++

/* DO NOT EDIT THIS FILE.
It has been auto-edited by fixincludes from:
"fixinc/tests/inc/iso/stdio_iso.h"
This had to be done to correct non-standard usages in the
original, manufacturer supplied header file. */
#if defined( SOLARIS_GETC_STRICT_STDC_CHECK )
#if !defined(_REENTRANT) && !defined(_LP64) && (!defined(_STRICT_STDC) || (__cplusplus >= 199711L))
#endif /* SOLARIS_GETC_STRICT_STDC_CHECK */
#if defined( SOLARIS_GETS_C11_CHECK )
#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L
extern char *gets(char *) __attribute__((__deprecated__));
#endif
#endif /* SOLARIS_GETS_C11_CHECK */
#if defined( SOLARIS_GETS_CXX14_CHECK )
#if __STDC_VERSION__ < 201112L && __cplusplus < 201402L
extern char *gets(char *) __ATTR_DEPRECATED;
#endif /* SOLARIS_GETS_CXX14_CHECK */