|
@@ -26,24 +26,6 @@ extern "C" {
|
|
/* Macro-Expand for MSVC workarounds */
|
|
/* Macro-Expand for MSVC workarounds */
|
|
#define UA_MACRO_EXPAND(x) x
|
|
#define UA_MACRO_EXPAND(x) x
|
|
|
|
|
|
-/* Thread-Local Storage
|
|
|
|
- * --------------------
|
|
|
|
- * Thread-local storage is not required by the main library functionality. It is
|
|
|
|
- * only used for some testing strategies. ``UA_THREAD_LOCAL`` is empty if the
|
|
|
|
- * feature is not available. */
|
|
|
|
-
|
|
|
|
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
|
|
|
|
-# define UA_THREAD_LOCAL _Thread_local /* C11 */
|
|
|
|
-#elif defined(__cplusplus) && __cplusplus > 199711L
|
|
|
|
-# define UA_THREAD_LOCAL thread_local /* C++11 */
|
|
|
|
-#elif defined(__GNUC__)
|
|
|
|
-# define UA_THREAD_LOCAL __thread /* GNU extension */
|
|
|
|
-#elif defined(_MSC_VER)
|
|
|
|
-# define UA_THREAD_LOCAL __declspec(thread) /* MSVC extension */
|
|
|
|
-#else
|
|
|
|
-# define UA_THREAD_LOCAL
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/* Integer Shortnames
|
|
/* Integer Shortnames
|
|
* ------------------
|
|
* ------------------
|
|
* These are not exposed on the public API, since many user-applications make
|
|
* These are not exposed on the public API, since many user-applications make
|