17 #ifndef ONESDK_CONFIG_H_INCLUDED 18 #define ONESDK_CONFIG_H_INCLUDED 33 #if defined(ONESDK_BUILD_LIBRARY) && !defined(ONESDK_BUILD_TEST) && defined(__cplusplus) 37 # error The SDK stub itself must be compiled as pure C 44 # define ONESDK_CALL __stdcall 52 #if defined(ONESDK_BUILD_LIBRARY) 54 # if defined(ONESDK_SHARED) 55 # define ONESDK_EXPORT __declspec(dllexport) 57 # define ONESDK_EXPORT 60 # define ONESDK_EXPORT 61 # elif defined(__GNUC__) && ((__GNUC__ + 0) >= 4) 62 # if defined(ONESDK_SHARED) 63 # define ONESDK_EXPORT __attribute__((visibility("default"))) 65 # define ONESDK_EXPORT 68 # define ONESDK_EXPORT 71 # define ONESDK_EXPORT 76 # define ONESDK_HIDDEN 78 # define ONESDK_HIDDEN 79 #elif defined(__GNUC__) && ((__GNUC__ + 0) >= 4) 80 # define ONESDK_HIDDEN __attribute__((visibility("hidden"))) 82 # define ONESDK_HIDDEN 87 #if defined(__cplusplus) 88 # define ONESDK_DECLARE_EXTERN_C extern "C" 89 # define ONESDK_DEFINE_EXTERN_C extern "C" 91 # define ONESDK_DECLARE_EXTERN_C extern 92 # define ONESDK_DEFINE_EXTERN_C 98 #if defined(ONESDK_ATTRIBUTE_UNUSED) 100 #elif defined(__GNUC__) && (__GNUC__ >= 4) 101 # define ONESDK_ATTRIBUTE_UNUSED __attribute__((__unused__)) 102 #elif defined(__clang__) 103 # define ONESDK_ATTRIBUTE_UNUSED __attribute__((__unused__)) 105 # define ONESDK_ATTRIBUTE_UNUSED 109 #if defined(ONESDK_INLINE) 111 #elif defined(__cplusplus) 112 # define ONESDK_INLINE inline 113 #elif (__STDC_VERSION__ >= 199901L) 114 # define ONESDK_INLINE static inline 115 #elif defined(_MSC_VER) && ((_MSC_VER + 0) >= 1900) && !defined(_BullseyeCoverage) 116 # define ONESDK_INLINE static inline 118 # define ONESDK_INLINE static 124 #define ONESDK_DECLARE_FUNCTION(return_type) ONESDK_DECLARE_EXTERN_C ONESDK_EXPORT return_type ONESDK_CALL 126 #define ONESDK_DECLARE_INTERNAL_FUNCTION(return_type) ONESDK_DECLARE_EXTERN_C ONESDK_HIDDEN return_type ONESDK_CALL 128 #define ONESDK_DEFINE_INLINE_FUNCTION(return_type) ONESDK_INLINE return_type ONESDK_ATTRIBUTE_UNUSED 134 #if defined(ONESDK_LITTLE_ENDIAN) || defined(ONESDK_BIG_ENDIAN) 139 # if defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && ((__BYTE_ORDER + 0) == (__LITTLE_ENDIAN + 0)) 140 # define ONESDK_LITTLE_ENDIAN 141 # elif defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && ((__BYTE_ORDER__ + 0) == (__ORDER_LITTLE_ENDIAN__ + 0)) 142 # define ONESDK_LITTLE_ENDIAN 143 # elif (defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)) || (defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)) 144 # define ONESDK_LITTLE_ENDIAN 145 # elif defined(__ARMEL__) || defined(__THUMBEL__) || defined(__AARCH64EL__) || defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__) 146 # define ONESDK_LITTLE_ENDIAN 147 # elif defined(__i386__) || defined(__i386) || defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || defined(__amd64) || defined(_X86_) || defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64) || defined(__THW_INTEL__) 148 # define ONESDK_LITTLE_ENDIAN 151 # if defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && ((__BYTE_ORDER + 0) == (__BIG_ENDIAN + 0)) 152 # define ONESDK_BIG_ENDIAN 153 # elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && ((__BYTE_ORDER__ + 0) == (__ORDER_BIG_ENDIAN__ + 0)) 154 # define ONESDK_BIG_ENDIAN 155 # elif (defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)) || (defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)) 156 # define ONESDK_BIG_ENDIAN 157 # elif defined(__ARMEB__) || defined(__THUMBEB__) || defined(__AARCH64EB__) || defined(_MIPSEB) || defined(__MIPSEB) || defined(__MIPSEB__) 158 # define ONESDK_BIG_ENDIAN 159 # elif defined(__sparc__) || defined(__sparc) 160 # define ONESDK_BIG_ENDIAN 161 # elif defined(__s390__) || defined(__s390x__) || defined(__MVS__) || defined(__TOS_MVS__) 162 # define ONESDK_BIG_ENDIAN 167 #if defined(ONESDK_LITTLE_ENDIAN) && defined(ONESDK_BIG_ENDIAN) 168 # error ONESDK_LITTLE_ENDIAN and ONESDK_BIG_ENDIAN defined at the same time. 201 # define ONESDK_ERROR_BASE ((onesdk_result_t) 0xAFFE0000) 203 # define ONESDK_ERROR_BASE ((onesdk_result_t)-0x50020000) // = same bit pattern as 0xAFFE0000 227 #if defined(ONESDK_BUILD_DOC) 229 #elif defined(_WIN32) 237 # define ONESDK_XSTR_PRI_STR L"S" 239 # define ONESDK_XSTR_PRI_STR "s" 244 # define ONESDK_STR_PRI_XSTR "S" 246 # define ONESDK_STR_PRI_XSTR "s" 251 # define ONESDK_XSTR_IMPL(str) L ## str 253 # define ONESDK_XSTR_IMPL(str) str 257 #define ONESDK_XSTR(str) ONESDK_XSTR_IMPL(str) uint32_t onesdk_uint32_t
Unsigned 32 bit integer.
Definition: onesdk_config.h:217
int64_t onesdk_int64_t
Signed 64 bit integer.
Definition: onesdk_config.h:216
int32_t onesdk_result_t
Type for result codes of the SDK stub.
Definition: onesdk_config.h:181
int32_t onesdk_bool_t
Type for boolean values. Zero means false, any non-zero value means true.
Definition: onesdk_config.h:213
char_or_wchar_t onesdk_xchar_t
The native character type of the operating system. wchar_t for Windows and char for other systems...
Definition: onesdk_config.h:228
uint64_t onesdk_uint64_t
Unsigned 64 bit integer.
Definition: onesdk_config.h:218
int32_t onesdk_int32_t
Signed 32 bit integer.
Definition: onesdk_config.h:215
size_t onesdk_size_t
Unsigned integer type used for sizes (e.g. array sizes) and counts.
Definition: onesdk_config.h:220