The header file generated with cbindgen will automatically wrap the various exported functions in c preprocessor macros, but only if those macros are defined in the cbindgen.toml under a [defines] section.
For example, on my windows machine, the functions labeled for MacOS only are still included leading to undefined references when compiling.
The header file generated with cbindgen will automatically wrap the various exported functions in c preprocessor macros, but only if those macros are defined in the cbindgen.toml under a [defines] section.
For example, on my windows machine, the functions labeled for MacOS only are still included leading to undefined references when compiling.
More information about this can be found here.