ENH: only check flag on unix

This commit is contained in:
Bill Hoffman 2002-04-10 11:23:30 -04:00
parent 384937a420
commit 8e7e53960e
3 changed files with 6 additions and 0 deletions

View File

@ -2,11 +2,13 @@
int CsharedFunction() int CsharedFunction()
{ {
#if !defined(_WIN32) || defined(__CYGWIN__)
#ifndef TEST_C_FLAGS #ifndef TEST_C_FLAGS
printf("TEST_C_FLAGS failed\n"); printf("TEST_C_FLAGS failed\n");
return 0; return 0;
#else #else
printf("Passed: TEST_C_FLAGS passed\n"); printf("Passed: TEST_C_FLAGS passed\n");
#endif
#endif #endif
return 1; return 1;
} }

View File

@ -2,11 +2,13 @@
int CsharedFunction() int CsharedFunction()
{ {
#if !defined(_WIN32) || defined(__CYGWIN__)
#ifndef TEST_C_FLAGS #ifndef TEST_C_FLAGS
printf("TEST_C_FLAGS failed\n"); printf("TEST_C_FLAGS failed\n");
return 0; return 0;
#else #else
printf("Passed: TEST_C_FLAGS passed\n"); printf("Passed: TEST_C_FLAGS passed\n");
#endif
#endif #endif
return 1; return 1;
} }

View File

@ -2,11 +2,13 @@
int CsharedFunction() int CsharedFunction()
{ {
#if !defined(_WIN32) || defined(__CYGWIN__)
#ifndef TEST_C_FLAGS #ifndef TEST_C_FLAGS
printf("TEST_C_FLAGS failed\n"); printf("TEST_C_FLAGS failed\n");
return 0; return 0;
#else #else
printf("Passed: TEST_C_FLAGS passed\n"); printf("Passed: TEST_C_FLAGS passed\n");
#endif
#endif #endif
return 1; return 1;
} }