replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / c_common / platform_features.h
index 3af42cd..5e1a065 100644 (file)
 #ifndef PLATFORM_FEATURES_H_
 #define PLATFORM_FEATURES_H_
 
-
-#if (__cplusplus >=201103L) || defined(__GXX_EXPERIMENTAL_CXX0X__)
-#  define SUPPORTS_DEFAULT_CTOR
+#ifndef __TIZENRT__
+#  if (__cplusplus >=201103L) || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#    define SUPPORTS_DEFAULT_CTOR
+#  endif
 #endif
 
-#if (__STDC_VERSION__ >= 201112L)
-#  include <assert.h>
-#  define OC_STATIC_ASSERT(condition, msg) static_assert(condition, msg)
-#elif defined(_WIN32)
-#  if defined(__msys_nt__) && !defined(__cplusplus)
-#    define static_assert _Static_assert
+#ifndef __TIZENRT__
+#  if (__STDC_VERSION__ >= 201112L)
+#    include <assert.h>
+#    define OC_STATIC_ASSERT(condition, msg) static_assert(condition, msg)
+#  elif defined(_WIN32)
+#    if defined(__msys_nt__) && !defined(__cplusplus)
+#      define static_assert _Static_assert
+#    endif
+#    define OC_STATIC_ASSERT(condition, msg) static_assert(condition, msg)
+#  else
+#    define OC_STATIC_ASSERT(condition, msg) ((void)sizeof(char[2*!!(condition) - 1]))
 #  endif
-#  define OC_STATIC_ASSERT(condition, msg) static_assert(condition, msg)
-#else
-#  define OC_STATIC_ASSERT(condition, msg) ((void)sizeof(char[2*!!(condition) - 1]))
 #endif
 
 #ifndef INLINE_API