#if FOO_EXISTS int foo(void) { /* ... */ /* ... */ /* ... */ } #else int foo(void) {} #endif int main(void) { bar(); foo(); baz(); }