Explorar o código

Readded UA_ENCODINGOFFSET_BINARY

ichrispa %!s(int64=8) %!d(string=hai) anos
pai
achega
dfad8fa02f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      tools/pyUANamespace/ua_namespace.py

+ 3 - 0
tools/pyUANamespace/ua_namespace.py

@@ -653,6 +653,9 @@ class opcua_namespace():
     header.append('#include "open62541.h"')
     header.append('#define NULL ((void *)0)')
     header.append('#endif')
+    header.append('#ifndef UA_ENCODINGOFFSET_BINARY')
+    header.append('#define UA_ENCODINGOFFSET_BINARY 2')
+    header.append('#endif')
 
     code.append('#include "'+outfilename+'.h"')
     code.append("UA_INLINE void "+outfilename+"(UA_Server *server) {")