Просмотр исходного кода

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

Christian von Arnim лет назад: 6
Родитель
Сommit
cd94f54c45
1 измененных файлов с 7 добавлено и 0 удалено
  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_
 #define UA_CLIENT_HIGHLEVEL_ASYNC_H_
 #include "ua_client.h"
 #include "ua_client.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
 /**
  * Raw Services
  * Raw Services
  * ^^^^^^^^^^^^ */
  * ^^^^^^^^^^^^ */
@@ -627,5 +631,8 @@ static UA_INLINE UA_StatusCode UA_Cient_translateBrowsePathsToNodeIds_async(
 			pathSize, (UA_ClientAsyncServiceCallback) callback, userdata, reqId);
 			pathSize, (UA_ClientAsyncServiceCallback) callback, userdata, reqId);
 }
 }
 
 
+#ifdef __cplusplus
+} // extern "C"
+#endif
 
 
 #endif /* UA_CLIENT_HIGHLEVEL_ASYNC_H_ */
 #endif /* UA_CLIENT_HIGHLEVEL_ASYNC_H_ */