Explorar el Código

Repositioned typedef of UA_NULL in generated header to make the amalgamated files compilable with namespace generation.

Chris Iatrou hace 9 años
padre
commit
8498f7bc1e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/pyUANamespace/ua_namespace.py

+ 1 - 1
tools/pyUANamespace/ua_namespace.py

@@ -639,9 +639,9 @@ class opcua_namespace():
     header.append('#include "server/ua_server_internal.h"')
     header.append('#include "server/ua_nodes.h"')
     header.append('#include "ua_types.h"')
+    header.append('#define UA_NULL NULL')
     header.append('#else')
     header.append('#include "open62541.h"')
-    header.append('#define UA_NULL NULL')
     header.append('#endif')
       
     code.append('#include "'+outfilename+'.h"')