Skip the math_exception fix-include if already guarded for C++. rdar://11147812
The current OS X version of math.h already guards the relevant part of math.h
with a preprocessor check for __cplusplus, so there's no need to generate a
fixed version.
llvm-svn: 155408
diff --git a/llvm-gcc-4.2/fixincludes/fixincl.x b/llvm-gcc-4.2/fixincludes/fixincl.x
index 22d8c41..29a0cd3 100644
--- a/llvm-gcc-4.2/fixincludes/fixincl.x
+++ b/llvm-gcc-4.2/fixincludes/fixincl.x
@@ -4652,10 +4652,13 @@
*/
tSCC zMath_ExceptionBypass0[] =
"We have a problem when using C\\+\\+|for C\\+\\+, _[a-z0-9A-Z_]+_exception; for C, exception";
+tSCC zMath_ExceptionBypass1[] =
+ "defined __cplusplus";
#define MATH_EXCEPTION_TEST_CT 2
static tTestDesc aMath_ExceptionTests[] = {
{ TT_NEGREP, zMath_ExceptionBypass0, (regex_t*)NULL },
+ { TT_NEGREP, zMath_ExceptionBypass1, (regex_t*)NULL },
{ TT_EGREP, zMath_ExceptionSelect0, (regex_t*)NULL }, };
/*