CLang

えくすたーん・しーを毎回書いてしまう見上げたバッチ野郎の鑑

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