From 55383b5e7f38f7330c50b9ab7cff2969f9fff283 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Sun, 29 Jun 2014 17:28:06 +0200 Subject: [PATCH] Adjust the include file for C++ compilers --- libhpcs.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include @@ -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 -- 2.43.5