소스 검색

include config.h before the feature conditional

Julius Pfrommer 9 년 전
부모
커밋
c90970ae1e
2개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 4
      src/server/ua_nodestore.c
  2. 2 2
      src/server/ua_nodestore_concurrent.c

+ 2 - 4
src/server/ua_nodestore.c

@@ -1,10 +1,8 @@
-#ifndef UA_ENABLE_MULTITHREADING /* conditional compilation */
-
-#include <stdio.h>
-
 #include "ua_nodestore.h"
 #include "ua_util.h"
 
+#ifndef UA_ENABLE_MULTITHREADING /* conditional compilation */
+
 #define UA_NODESTORE_MINSIZE 64
 
 typedef struct UA_NodeStoreEntry {

+ 2 - 2
src/server/ua_nodestore_concurrent.c

@@ -1,8 +1,8 @@
-#ifdef UA_ENABLE_MULTITHREADING /* conditional compilation */
-
 #include "ua_util.h"
 #include "ua_nodestore.h"
 
+#ifdef UA_ENABLE_MULTITHREADING /* conditional compilation */
+
 struct nodeEntry {
     struct cds_lfht_node htn; ///< Contains the next-ptr for urcu-hashmap
     struct rcu_head rcu_head; ///< For call-rcu