RTI Connext DDS Micro  Version 2.4.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
osapi_os.h
Go to the documentation of this file.
1 /*
2  * FILE: osapi_config.h - OS configuration common for all OSs
3  *
4  * (c) Copyright, Real-Time Innovations, 2012-2016
5  *
6  * All rights reserved.
7  *
8  * No duplications, whole or partial, manual or electronic, may be made
9  * without express written permission. Any such copies, or
10  * revisions thereof, must display this notice unaltered.
11  * This code contains trade secrets of Real-Time Innovations, Inc.
12  *
13  * Modification History
14  * --------------------
15  * 28jul2016,tk Refactored from osapi_config.h
16  */
17 /*ce \file
18  * \brief OS API Configuration
19  */
20 #ifndef OSAPI_OS_H
21 #define OSAPI_OS_H
22 
23 #ifndef OSAPI_OS_DEF_H
24 /* If the platform has not been specified, attempt to determine it.
25  */
26 #if defined(__APPLE__) && defined(__MACH__)
27 #define OSAPI_OS_DEF_H "osapi_os_posix.h"
28 #elif defined(__linux__)
29 #define OSAPI_OS_DEF_H "osapi_os_posix.h"
30 #elif defined(__VOS__)
31 #define OSAPI_OS_DEF_H "osapi_os_posix.h"
32 #elif defined(_MSC_VER) || defined(WIN32)
33 #define OSAPI_OS_DEF_H "osapi_os_windows.h"
34 #elif defined(__vxworks)
35 #define OSAPI_OS_DEF_H "osapi_os_vxworks.h"
36 #elif defined(__QNXNTO__)
37 #define OSAPI_OS_DEF_H "osapi_os_posix.h"
38 #else
39 #error "Unable to detect OS. Please define OSAPI_OS_DEF_H."
40 #endif
41 #endif
42 
43 #include OSAPI_OS_DEF_H
44 
45 #if !defined(OSAPI_ThreadId) && !defined(OSAPI_ThreadHandle)
46 #error "OSAPI_ThreadId and/or OSAPI_ThreadHandle not defined in "##OSAPI_OS_DEF_H
47 #endif
48 
49 /* This is to maintain backwards compatability with Micro <= 2.4.8 */
50 #ifndef OSAPI_ProcessId
51 #define OSAPI_ProcessId RTI_UINT32
52 #endif
53 
54 #endif /* osapi_os_h */

RTI Connext DDS Micro Version 2.4.10 Copyright © Fri Jun 30 2017 Real-Time Innovations, Inc