ソースを参照

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"')