Index: tests/OFInvocationTests.m ================================================================== --- tests/OFInvocationTests.m +++ tests/OFInvocationTests.m @@ -18,11 +18,11 @@ #include "config.h" #include #include -#ifndef __STDC_NO_COMPLEX__ +#if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__) # include #endif #import "OFInvocation.h" #import "OFMethodSignature.h" @@ -128,11 +128,11 @@ { return (d1 + d2 + d3 + d4 + d5 + d6 + d7 + d8 + d9 + d10 + d11 + d12 + d13 + d14 + d15 + d16) / 16; } -#ifndef __STDC_NO_COMPLEX__ +#if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__) - (complex double)invocationTestMethod6: (complex float)c1 : (complex double)c2 : (complex float)c3 : (complex double)c4 : (complex float)c5 @@ -398,11 +398,11 @@ TEST(@"-[invoke] #4", R([invocation invoke]) && R([invocation getReturnValue: &longDoubleResult]) && longDoubleResult == 8.5) } -# ifndef __STDC_NO_COMPLEX__ +# if defined(HAVE_COMPLEX_H) && !defined(__STDC_NO_COMPLEX__) /* -[invoke] #5 */ selector = @selector(invocationTestMethod6::::::::::::::::); invocation = [OFInvocation invocationWithMethodSignature: [self methodSignatureForSelector: selector]];