foo4.c (220B)
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 }