bplib icon indicating copy to clipboard operation
bplib copied to clipboard

Add extern "C" to all header files

Open bekuaghub opened this issue 1 year ago • 0 comments

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

bekuaghub avatar May 26 '23 10:05 bekuaghub