Browse Source

fixing build, the ifdefs had no chance to be set, since config was not included

Stasik0 8 years ago
parent
commit
509e4c9821

+ 2 - 2
src/client/ua_client_highlevel_subscriptions.c

@@ -1,10 +1,10 @@
-#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
-
 #include "ua_client_highlevel.h"
 #include "ua_client_internal.h"
 #include "ua_util.h"
 #include "ua_types_generated_encoding_binary.h"
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
+
 const UA_SubscriptionSettings UA_SubscriptionSettings_standard = {
     .requestedPublishingInterval = 500.0,
     .requestedLifetimeCount = 10000,

+ 2 - 2
src/server/ua_services_call.c

@@ -1,8 +1,8 @@
-#ifdef UA_ENABLE_METHODCALLS /* conditional compilation */
-
 #include "ua_services.h"
 #include "ua_server_internal.h"
 
+#ifdef UA_ENABLE_METHODCALLS /* conditional compilation */
+
 static const UA_VariableNode *
 getArgumentsVariableNode(UA_Server *server, const UA_MethodNode *ofMethod,
                          UA_String withBrowseName) {

+ 2 - 2
src/server/ua_services_subscription.c

@@ -1,9 +1,9 @@
-#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
-
 #include "ua_server_internal.h"
 #include "ua_services.h"
 #include "ua_subscription.h"
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
+
 #define UA_BOUNDEDVALUE_SETWBOUNDS(BOUNDS, SRC, DST) { \
         if(SRC > BOUNDS.max) DST = BOUNDS.max;         \
         else if(SRC < BOUNDS.min) DST = BOUNDS.min;    \

+ 2 - 2
src/server/ua_subscription.c

@@ -1,10 +1,10 @@
-#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
-
 #include "ua_subscription.h"
 #include "ua_server_internal.h"
 #include "ua_services.h"
 #include "ua_nodestore.h"
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS /* conditional compilation */
+
 /*****************/
 /* MonitoredItem */
 /*****************/