3 ms·
You should not be #include-ing headers inside of an extern "C" block. It is up to those headers to: #ifdef __cplusplus extern "C" { #endif
by apaprocki 15y ago
You should not be #include-ing headers inside of an extern "C" block. It is up to those headers to:
#ifdef __cplusplus
extern "C" {
#endif
- humbledrone 15y agoAnd, if those headers do not already wrap themselves in their own extern "C" block, wrapping around the #include is sometimes a quick fix (e.g. until the upstream authors merge your pull request).
- DiabloD3 15y agoThis. Windows porters frequently have to do this to deal with the fact Microsoft still refuses to produce a C compiler, and instead just does double duty on their existing C++ compiler.
- CamperBob 15y agoUm, OK, I'll bite. Why not?