The library header files automatically define functions to have extern "C" linkage when included in C++ programs.
extern "C"