Commit 571512d5 by Bernd Edlinger Committed by Jonathan Wakely

Don't define guard macros when doing #include_next in math.h and stdlib.h

2016-02-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>

	PR libstdc++/69581
	* include/c_compatibility/math.h: Move header guards.
	* include/c_compatibility/stdlib.h: Likewise.

From-SVN: r233035
parent 04bd58cf
2016-02-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR libstdc++/69581
* include/c_compatibility/math.h: Move header guards.
* include/c_compatibility/stdlib.h: Likewise.
2016-01-29 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/69506
......
......@@ -26,13 +26,13 @@
* This is a Standard C++ Library header.
*/
#if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
# include_next <math.h>
#else
#ifndef _GLIBCXX_MATH_H
#define _GLIBCXX_MATH_H 1
#if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
# include_next <math.h>
#else
# include <cmath>
using std::abs;
......@@ -177,7 +177,5 @@ using std::sph_neumannl;
using std::sph_neumann;
#endif // __STDCPP_WANT_MATH_SPEC_FUNCS__
#endif // __cplusplus
#endif // _GLIBCXX_MATH_H
#endif // __cplusplus
......@@ -26,12 +26,13 @@
* This is a Standard C++ Library header.
*/
#ifndef _GLIBCXX_STDLIB_H
#define _GLIBCXX_STDLIB_H 1
#if !defined __cplusplus || defined _GLIBCXX_INCLUDE_NEXT_C_HEADERS
# include_next <stdlib.h>
#else
#ifndef _GLIBCXX_STDLIB_H
#define _GLIBCXX_STDLIB_H 1
# include <cstdlib>
using std::abort;
......@@ -81,5 +82,5 @@ using std::wctomb;
#endif // _GLIBCXX_USE_WCHAR_T
#endif
#endif
#endif
#endif // _GLIBCXX_STDLIB_H
#endif // __cplusplus
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment