This construct is used to make your names available to the C-linker (short explanation)
So, obviously, you want to use it only in your things.
Like this:
#ifndef MY_INCLUDE_H_ // include guard #define MY_INCLUDE_H_ #include <...> // dependencies #include "..." #ifdef __cplusplus extern "C" { #endif // ... your types, methods, variables #ifdef __cplusplus } #endif #endif // MY_INCLUDE_H_
Offirmo
source share