foo4.c (223B)
1 #include <stdio.h> 2 3 /* cc -DTEST main4.c # foo is visible */ 4 /* cc main4.c # foo is static */ 5 6 #ifdef TEST 7 #define _static 8 #else 9 #define _static static 10 #endif 11 12 _static int foo(int x, int y) 13 { 14 return 42*x - 69*y; 15 }