Set defines before including platform_features.h
authorDave Thaler <dthaler@microsoft.com>
Fri, 16 Sep 2016 22:58:17 +0000 (15:58 -0700)
committerDave Thaler <dthaler@microsoft.com>
Mon, 19 Sep 2016 11:04:41 +0000 (11:04 +0000)
This is needed since platform_features.h uses some of the ifdefs set in
iotivity_config.h

Change-Id: I93aa075f910ed9a4548a30d6a3fa5a6d0692ad9c
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11893
Reviewed-by: David Antler <david.a.antler@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/c_common/SConscript

index 8613ad8..638b1cc 100644 (file)
@@ -46,14 +46,14 @@ config_h_header = '''
 #ifndef IOTIVITY_CONFIG_H__
 #define IOTIVITY_CONFIG_H__
 
-#include "platform_features.h"
-
 ''' % (str(target_os), str(target_arch), str(datetime.datetime.utcnow()))
 
 config_h_body = ''
 
 config_h_footer = '''
 
+#include "platform_features.h"
+
 #endif // IOTIVITY_CONFIG_H__
 
 '''