Skip to content
Snippets Groups Projects
  • Guy Zana's avatar
    8536721b
    bsd: avoid using extern "C" in c++ files · 8536721b
    Guy Zana authored
    1. it is much cleaner that the header files perform extern "C" themselves,
       so they can be included both from C and C++ code.
    
    2. when doing extern "C" from a C++ file then __cplusplus is also defined,
       and compilation can break in some situations.
    
    3. as a bonus, this patch increase compilation time.
    8536721b
    History
    bsd: avoid using extern "C" in c++ files
    Guy Zana authored
    1. it is much cleaner that the header files perform extern "C" themselves,
       so they can be included both from C and C++ code.
    
    2. when doing extern "C" from a C++ file then __cplusplus is also defined,
       and compilation can break in some situations.
    
    3. as a bonus, this patch increase compilation time.