resource/csdk/connectivity/build/out/
-# Ignore autogenerated files
-resource/c_common/iotivity_config.h
-
resource/oc_logger/bin/
resource/oc_logger/lib/
resource/oc_logger/samples/linux/release/
# POSIX_SUPPORTED, 1 if it is supported, 0 otherwise
conf.CheckPThreadsSupport()
+######################################################################
+# Generate macros for presence of headers
+######################################################################
+cxx_headers = ['arpa/inet.h',
+ 'fcntl.h',
+ 'grp.h',
+ 'in6addr.h',
+ 'linux/limits.h',
+ 'memory.h',
+ 'netdb.h',
+ 'netinet/in.h',
+ 'pthread.h',
+ 'pwd.h',
+ 'stdlib.h',
+ 'string.h',
+ 'strings.h',
+ 'sys/socket.h',
+ 'sys/stat.h',
+ 'sys/time.h',
+ 'sys/timeb.h',
+ 'sys/types.h',
+ 'sys/unistd.h',
+ 'syslog.h',
+ 'time.h',
+ 'unistd.h',
+ 'uuid/uuid.h',
+ 'windows.h',
+ 'winsock2.h',
+ 'ws2tcpip.h']
+
+if target_os == 'arduino':
+ # Detection of headers on the Arduino platform is currently broken.
+ cxx_headers = []
+
+if target_os == 'msys_nt':
+ # WinPThread provides a pthread.h, but we want to use native threads.
+ cxx_headers.remove('pthread.h')
+
+def get_define_from_header_file(header_file):
+ header_file_converted = header_file.replace("/","_").replace(".","_").upper()
+ return "HAVE_" + header_file_converted
+
+for header_file_name in cxx_headers:
+ if conf.CheckCXXHeader(header_file_name):
+ conf.env.AppendUnique(CPPDEFINES = [get_define_from_header_file(header_file_name)])
+
env = conf.Finish()
######################################################################
#define _BSD_SOURCE
-#include "iotivity_config.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#include "platform_features.h"
#include <stdio.h>
#ifndef TIMER_H_
#define TIMER_H_
-#include "iotivity_config.h"
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
/* This is needed for apple */
#define __APPLE_USE_RFC_3542
-#include "iotivity_config.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
Requires:
Libs: -L${libdir} -loc -loc_logger -loc_logger_core -loctbstack -lconnectivity_abstraction
Cflags: -I${includedir}/resource \
- -I${includedir}/c_common \
-I${svcincludedir}/resource-encapsulation \
-I${svcincludedir}/resource-container \
-I${svcincludedir}/resource-hosting \
Import('env')
import os
-import datetime
target_os = env.get('TARGET_OS')
-target_arch = env.get('TARGET_ARCH')
-######################################################################
-# Generate iotivity_config.h using presence of headers
-######################################################################
-
-config_h_env = env.Clone()
-conf = Configure(config_h_env)
-
-config_h_header = '''
-/* ****************************************************************************
- * iotivity_config.h - IoTivity platform-specific configuration header.
- *
- * Auto-generated code for the %s %s platform.
- *
- * Generated at %s
- *
- *************************************************************************** */
-
-#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 = '''
-
-#endif // IOTIVITY_CONFIG_H__
-
-'''
-
-cxx_headers = ['arpa/inet.h',
- 'fcntl.h',
- 'grp.h',
- 'in6addr.h',
- 'linux/limits.h',
- 'memory.h',
- 'netdb.h',
- 'netinet/in.h',
- 'pthread.h',
- 'pwd.h',
- 'stdlib.h',
- 'string.h',
- 'strings.h',
- 'sys/socket.h',
- 'sys/stat.h',
- 'sys/time.h',
- 'sys/timeb.h',
- 'sys/types.h',
- 'sys/unistd.h',
- 'syslog.h',
- 'time.h',
- 'unistd.h',
- 'uuid/uuid.h',
- 'windows.h',
- 'winsock2.h',
- 'ws2tcpip.h']
-
-if target_os == 'arduino':
- # Detection of headers on the Arduino platform is currently broken.
- cxx_headers = []
-
-if target_os == 'msys_nt':
- # WinPThread provides a pthread.h, but we want to use native threads.
- cxx_headers.remove('pthread.h')
-
-def get_define_from_header_file(header_file):
- header_file_converted = header_file.replace("/","_").replace(".","_").upper()
- return "HAVE_" + header_file_converted
-
-for header_file_name in cxx_headers:
- if conf.CheckCXXHeader(header_file_name):
- config_h_body += "#define %s\n\n" % get_define_from_header_file(header_file_name)
-conf.Finish()
-
-# Autoconf feature doesn't work with Jenkins' arduino toolchain, so hardcode it here.
-if target_os == 'arduino':
- config_h_body += "#define HAVE_ARDUINO_TIME_H\n\n"
-
-# Generate the file
-src_dir = env.get('SRC_DIR')
-config_h_file_path = os.path.join(src_dir, 'resource', 'c_common', 'iotivity_config.h')
-if os.path.exists(config_h_file_path):
- os.remove(config_h_file_path)
-config_h_file = open(config_h_file_path, "w")
-config_h_file.write(config_h_header + config_h_body + config_h_footer)
-config_h_file.close()
-
-# Sanity check to ensure that the above block created the file.
-if not os.path.exists(config_h_file_path):
- print "Error: iotivity_config.h file not created!"
-
-# iotivity_config.h should be copied to the build dir
-env.UserInstallTargetHeader(config_h_file_path, 'c_common', 'iotivity_config.h')
-
-# Use the generated file internally
-env.AppendUnique(CPPPATH = [os.path.join(src_dir, 'resource', 'c_common')])
-
-######################################################################
-
-######################################################################
# Add platform-specific helper library
-######################################################################
-
if target_os in ['windows', 'msys_nt']:
SConscript('windows/SConscript')
env.AppendUnique(CPPPATH = [
+ os.path.join(Dir('.').abspath),
os.path.join(Dir('.').abspath, 'oic_malloc', 'include'),
os.path.join(Dir('.').abspath, 'oic_string', 'include'),
os.path.join(Dir('.').abspath, 'oic_time', 'include'),
env.ParseConfig("pkg-config --cflags --libs uuid")
common_env = env.Clone()
+common_env.AppendUnique(LIBPATH = [os.path.join(env.get('BUILD_DIR'), 'resource')])
######################################################################
# Build flags
'oic_time/src/oic_time.c',
'ocrandom/src/ocrandom.c',
]
+
commonlib = common_env.StaticLibrary('c_common', common_src)
common_env.InstallTarget(commonlib, 'c_common')
common_env.UserInstallTargetLib(commonlib, 'c_common')
-common_env.UserInstallTargetHeader('platform_features.h', 'c_common', 'platform_features.h')
+common_env.UserInstallTargetHeader('platform_features.h', 'resource', 'platform_features.h')
env.PrependUnique(LIBS = ['c_common'])
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
-
+#include "platform_features.h"
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
#include "oic_time.h"
#include <stddef.h> // For NULL
static_libwinhelper = env.StaticLibrary('win_helper', helper_src)
env.InstallTarget(static_libwinhelper, 'win_helper')
env.UserInstallTargetLib(static_libwinhelper, 'win_helper')
-env.UserInstallTargetHeader('include/win_sleep.h', 'c_common/windows/include', 'win_sleep.h')
-env.UserInstallTargetHeader('include/pthread_create.h', 'c_common/windows/include', 'pthread_create.h')
-env.UserInstallTargetHeader('include/vs12_snprintf.h', 'c_common/windows/include', 'vs12_snprintf.h')
env.AppendUnique(LIBS = ['win_helper'])
#ifndef CA_COMMON_H_
#define CA_COMMON_H_
-#include "iotivity_config.h"
-
#ifndef WITH_ARDUINO
#ifdef TCP_ADAPTER
#define HAVE_SYS_POLL_H
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#include <errno.h>
#include <assert.h>
#include <oic_malloc.h>
+#include "platform_features.h"
#include "camutex.h"
#include "logger.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
-#include "iotivity_config.h"
#include <errno.h>
#if defined HAVE_PTHREAD_H
#include <pthread.h>
#ifndef CA_ADAPTER_NET_DTLS_H_
#define CA_ADAPTER_NET_DTLS_H_
+#include "platform_features.h"
#include "dtls.h"
#include "uarraylist.h"
#include "camutex.h"
#ifndef CA_ADAPTER_UTILS_H_
#define CA_ADAPTER_UTILS_H_
-#include "iotivity_config.h"
-
#include <stdbool.h>
#ifdef __ANDROID__
#include <jni.h>
* limitations under the License.
*
******************************************************************/
-#include "iotivity_config.h"
+#include "platform_features.h"
#include "caadapternetdtls.h"
#include "cacommon.h"
#include "caipinterface.h"
*
******************************************************************/
-#include "iotivity_config.h"
#include "caadapterutils.h"
#include <string.h>
// Refer http://www.gnu.org/software/libc/manual/html_node/BSD-Random.html
#define _DEFAULT_SOURCE
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
*
******************************************************************/
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#ifdef HAVE_SYS_TIMEB_H
+#if HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
#ifdef HAVE_TIME_H
#define _GNU_SOURCE // for in6_pktinfo
#endif
-#include "iotivity_config.h"
#include <sys/types.h>
#if !defined(_WIN32)
#include <sys/socket.h>
#include "camutex.h"
#include "oic_malloc.h"
#include "oic_string.h"
+#include "platform_features.h"
#define USE_IP_MREQN
#if defined(_WIN32)
#define _POSIX_C_SOURCE 200809L
#endif // _POSIX_C_SOURCE
-#include "iotivity_config.h"
#include "gtest/gtest.h"
#include <camutex.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include "platform_features.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include "gtest/gtest.h"
#ifdef HAVE_PTHREAD_H
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
-
// Pull in _POSIX_TIMERS feature test macro to check for
// clock_gettime() support.
#ifdef HAVE_UNISTD_H
#include "logger.h"
#include "string.h"
#include "logger_types.h"
+#include "platform_features.h"
#ifndef __TIZEN__
static oc_log_ctx_t *logCtx = 0;
#ifndef OC_SECURITY_RESOURCE_TYPES_H
#define OC_SECURITY_RESOURCE_TYPES_H
-#include "iotivity_config.h"
-
#include <stdint.h> // for uint8_t typedef
#include <stdbool.h>
#if defined(__WITH_X509__) || defined(__WITH_TLS__)
#include "byte_array.h"
#endif /* __WITH_X509__ or __WITH_TLS__*/
+#include "platform_features.h"
+
#ifdef __cplusplus
extern "C" {
#endif
*
*****************************************************************/
-#include "iotivity_config.h"
-
#include <stdio.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#include "platform_features.h"
#include "utlist.h"
#include "logger.h"
#include "oic_malloc.h"
///////////////////////////////////////////////////////////////////////
//NOTE : This sample server is generated based on ocserverbasicops.cpp
///////////////////////////////////////////////////////////////////////
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
///////////////////////////////////////////////////////////////////////
//NOTE : This sample server is generated based on ocserverbasicops.cpp
///////////////////////////////////////////////////////////////////////
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define _POSIX_C_SOURCE 200809L
#endif
-#include "iotivity_config.h"
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#define _POSIX_C_SOURCE 200112L
#endif
-#include "iotivity_config.h"
-#ifdef HAVE_UNISTD_H
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_STRING_H
* limitations under the License.
*
* *****************************************************************/
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
* limitations under the License.
*
* *****************************************************************/
-#include "iotivity_config.h"
#include "gtest/gtest.h"
#include "provisioningdatabasemanager.h"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#ifdef HAVE_STRING_H
#include <string.h>
-#elif defined(HAVE_STRINGS_H)
+#elif HAVE_STRINGS_H
#include <strings.h>
#endif
#include <stdlib.h>
#define __STDC_LIMIT_MACROS
-#include "iotivity_config.h"
#include <stdlib.h>
#ifdef HAVE_STRING_H
#include <string.h>
#ifndef _POSIX_C_SOURCE\r
#define _POSIX_C_SOURCE 200112L\r
#endif\r
-#include "iotivity_config.h"\r
#ifdef HAVE_UNISTD_H\r
#include <unistd.h>\r
#endif\r
// limitations under the License.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STRINGS_H
+#if HAVE_STRINGS_H
#include <strings.h>
#endif
*
* *****************************************************************/
-#include "iotivity_config.h"
#include <stdlib.h>
#include <string.h>
#include "ocstack.h"
#if !defined(WITH_ARDUINO)
#define _XOPEN_SOURCE //Needed by strptime
-#include "iotivity_config.h"
#include <string.h>
#include "iotvticalendar.h"
#include "oic_string.h"
*
* *****************************************************************/
-#include "iotivity_config.h"
#include <stdlib.h>
#include <string.h>
#include "ocstack.h"
*
* *****************************************************************/
-#include "iotivity_config.h"
#include <stdlib.h>
#include <string.h>
-#ifdef HAVE_STRINGS_H
+#if HAVE_STRINGS_H
#include <strings.h>
#endif
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include "gtest/gtest.h"
#ifdef HAVE_PWD_H
#include <pwd.h>
#ifndef OCTYPES_H_
#define OCTYPES_H_
-#include "iotivity_config.h"
+#include "platform_features.h"
#include "ocstackconfig.h"
#include <stdbool.h>
#include <stdint.h>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ocpayload.h"
#include "payload_logging.h"
#include "common.h"
+#include "platform_features.h"
#ifdef ROUTING_GATEWAY
/**
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <string>
#include "ocpayload.h"
#include "ocserver.h"
#include "common.h"
+#include "platform_features.h"
//string length of "/a/light/" + std::numeric_limits<int>::digits10 + '\0'"
// 9 + 9 + 1 = 19
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <string>
#include <getopt.h>
#include "ocpayload.h"
#include "common.h"
+#include "platform_features.h"
#define TAG PCF("ocservercontainer")
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include "iotivity_config.h"
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
+#include "platform_features.h"
#include "ocstack.h"
#include "logger.h"
#include "common.h"
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <sstream>
#include <getopt.h>
+#include "platform_features.h"
#include "ocstack.h"
#include "logger.h"
#include "occlientbasicops.h"
//\r
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
\r
-#include "iotivity_config.h"\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
#undef ERROR\r
#endif\r
#endif // defined(HAVE_WINDOWS_H)\r
+#include "platform_features.h"\r
#include "ocstack.h"\r
#include "logger.h"\r
#include "ocpayload.h"\r
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#endif
+#include "platform_features.h"
#include "ocstack.h"
#include "logger.h"
#include "ocpayload.h"
cp resource/csdk/stack/include/ocpresence.h %{DEST_INC_DIR}
cp resource/csdk/stack/include/ocpayload.h %{DEST_INC_DIR}
cp resource/c_common/platform_features.h %{DEST_INC_DIR}
-cp resource/c_common/iotivity_config.h %{DEST_INC_DIR}
cp resource/c_common/*/include/*.h %{DEST_INC_DIR}
cp resource/csdk/stack/include/payload_logging.h %{DEST_INC_DIR}
cp resource/csdk/stack/include/rdpayload.h %{DEST_INC_DIR}
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
+
#include "occlientcb.h"
#include "utlist.h"
#include "logger.h"
// Required for strok_r
#define _POSIX_C_SOURCE 200112L
-#include "iotivity_config.h"
#include <stdio.h>
#include "ocpayload.h"
#include "octypes.h"
#define _GNU_SOURCE
#endif
-#include "iotivity_config.h"
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
-#include "iotivity_config.h"
#include <inttypes.h>
#include <string.h>
#include <ctype.h>
#include "cainterface.h"
#include "ocpayload.h"
#include "ocpayloadcbor.h"
+#include "platform_features.h"
#if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
#include "routingutility.h"
#define _POSIX_C_SOURCE 200112L
-#include "iotivity_config.h"
-
#include <string.h>
#include "oicgroup.h"
#include "logger.h"
#include "timer.h"
+#include "platform_features.h"
+
#define TAG "OIC_RI_GROUP"
#define DESC_DELIMITER "\""
// limitations under the License.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include "oicresourcedirectory.h"
#include "rdpayload.h"
/// This sample provides steps to define an interface for a resource
/// (properties and methods) and host this resource on the server.
///
-#include "iotivity_config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
/// (properties and methods) and host this resource on the server.
///
-#include "iotivity_config.h"
#include <functional>
-#ifdef HAVE_PTHREAD_H
#include <pthread.h>
-#endif
#include <array>
#include <mutex>
#include <condition_variable>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
+#include "platform_features.h"
using namespace OC;
using namespace std;
// OCClient.cpp : Defines the entry point for the console application.
//
-#include "iotivity_config.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
// OCClient.cpp : Defines the entry point for the console application.
//
-#include "iotivity_config.h"
-
#include <set>
#include <string>
#include <cstdlib>
+#ifdef HAVE_PTHREAD_H
+#include <pthread.h>
+#endif
#include <mutex>
#include <condition_variable>
#include "OCPlatform.h"
#include "OCApi.h"
-#if defined(HAVE_PTHREAD_H)
-#include <pthread.h>
-#endif
#if defined(HAVE_WINDOWS_H)
#include <windows.h>
#endif
+#include "platform_features.h"
using namespace OC;
/// This sample provides steps to define an interface for a resource
/// (properties and methods) and host this resource on the server.
///
-#include "iotivity_config.h"
-
#include <functional>
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
+#include "platform_features.h"
using namespace OC;
using namespace std;
/// (properties and methods) and host this resource on the server.
///
-#include "iotivity_config.h"
#include <functional>
#ifdef HAVE_PTHREAD_H
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
+#include "platform_features.h"
using namespace OC;
using namespace std;
/// server in a separate thread, and running 2 clients in each thread.
///
-#include "iotivity_config.h"
#include <memory>
#include <iostream>
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
+#include "platform_features.h"
using namespace OC;
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#include "iotivity_config.h"
#include "OCResource.h"
#include "OCUtilities.h"