From: Michal MalĂ˝ <madcatxster@devoid-pointer.net> Date: Sun, 29 Jun 2014 15:28:06 +0000 (+0200) Subject: Adjust the include file for C++ compilers X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=55383b5e7f38f7330c50b9ab7cff2969f9fff283;p=libHPCS.git Adjust the include file for C++ compilers --- diff --git a/libhpcs.h b/libhpcs.h index c9b3507..ce63b69 100644 --- a/libhpcs.h +++ b/libhpcs.h @@ -1,3 +1,7 @@ +#ifdef __cplusplus +extern "C" { +#endif + #include <stddef.h> #include <stdint.h> @@ -55,3 +59,7 @@ __declspec(dllexport) enum HPCS_RetCode __cdecl hpcs_read_file(const char* const enum HPCS_RetCode hpcs_read_file(const char* const filename, struct HPCS_MeasuredData* mdata); char* hpcs_error_to_string(const enum HPCS_RetCode); #endif + +#ifdef __cplusplus +} +#endif