Stefan Profanter il y a 6 ans
Parent
commit
fa5796157e
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      src/ua_types_encoding_binary.h

+ 8 - 0
src/ua_types_encoding_binary.h

@@ -5,6 +5,10 @@
 #ifndef UA_TYPES_ENCODING_BINARY_H_
 #define UA_TYPES_ENCODING_BINARY_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "ua_types.h"
 
 typedef UA_StatusCode (*UA_exchangeEncodeBuffer)(void *handle, UA_Byte **bufPos, const UA_Byte **bufEnd);
@@ -21,4 +25,8 @@ UA_decodeBinary(const UA_ByteString *src, size_t *offset, void *dst,
 
 size_t UA_calcSizeBinary(void *p, const UA_DataType *type);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* UA_TYPES_ENCODING_BINARY_H_ */