nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Add extern "C" to all header files #238

Open bekuaghub opened 1 year ago

bekuaghub commented 1 year ago

I tried to integrate this project to a larger cpp project, there were errors when linking functions to the main project. There are some header files within the project, which already contain extern "C" definition, but most of them are missing that. It would be convenient to add extern "C" definitions to all header files to prevent future complications. Here is what to add:

#ifdef __cplusplus
extern "C" {
#endif

// mp function declarations

#ifdef __cplusplus
}
#endif