So we either do
#ifdef CONDITION
void some_function(...) {
...
}
#endif
...
#ifdef CONDITION
some_function(...);
#endif
...
or
void some_function(...) {
#ifdef CONDITION
...
#endif
}
...
some_function(...)
...
and I vote for the second approach, like all the functions which depend on defines should do that