瀏覽代碼

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

Chris Iatrou 9 年之前
父節點
當前提交
8498f7bc1e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"')