JuliaLang / PackageCompiler.jl

Compile your Julia Package
https://julialang.github.io/PackageCompiler.jl/dev/
MIT License
1.41k stars 189 forks source link

add #ifdef __cplusplus to headers? #811

Open xgdgsc opened 1 year ago

xgdgsc commented 1 year ago

Should something like in https://stackoverflow.com/questions/3789340/combining-c-and-c-how-does-ifdef-cplusplus-work question part inserted to every header when building library ? So library users in cpp don' t need to do it manually.

Found a post that also took sometime to figure this out. For modern cpp programmers who don' t use C libraries directly often. This could be easilly forgotten.