Browse Source

Add '#ifdef __cplusplus extern "C" {...' in ua_client_highlevel_async.h

Christian von Arnim 6 years ago
parent
commit
cd94f54c45
1 changed files with 7 additions and 0 deletions
  1. 7 0
      include/ua_client_highlevel_async.h

+ 7 - 0
include/ua_client_highlevel_async.h

@@ -8,6 +8,10 @@
 #define UA_CLIENT_HIGHLEVEL_ASYNC_H_
 #include "ua_client.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * Raw Services
  * ^^^^^^^^^^^^ */
@@ -627,5 +631,8 @@ static UA_INLINE UA_StatusCode UA_Cient_translateBrowsePathsToNodeIds_async(
 			pathSize, (UA_ClientAsyncServiceCallback) callback, userdata, reqId);
 }
 
+#ifdef __cplusplus
+} // extern "C"
+#endif
 
 #endif /* UA_CLIENT_HIGHLEVEL_ASYNC_H_ */