Browse Source

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

Chris Iatrou 9 years ago
parent
commit
8498f7bc1e
1 changed files with 1 additions and 1 deletions
  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"')