CLang
#ifdef __cplusplus extern "C" { #endif int nyanpass(void); #ifdef __cplusplus } #endif みたいにどのソースファイルでも extern "C" { を #ifdef, #endif などで囲んでいませんか? このような場合は: #if defined(__cplusplus) # define FOO_EXTERN_C_…
#ifdef __cplusplus extern "C" { #endif int nyanpass(void); #ifdef __cplusplus } #endif みたいにどのソースファイルでも extern "C" { を #ifdef, #endif などで囲んでいませんか? このような場合は: #if defined(__cplusplus) # define FOO_EXTERN_C_…