Try to do less allocation during parse, favour upper case entity names in spf

This commit is contained in:
Thomas Krijnen
2022-06-06 09:59:32 +02:00
parent 0e8d7bdc97
commit 4c854fbb62
4 changed files with 44 additions and 20 deletions
+13
View File
@@ -34,4 +34,17 @@
#define IFC_PARSE_API
#endif
#if defined(__clang__)
# define my_thread_local thread_local
#elif defined(__GNUC__)
# define my_thread_local __thread
#elif __STDC_VERSION__ >= 201112L
# define my_thread_local _Thread_local
#elif defined(_MSC_VER)
# define my_thread_local __declspec(thread)
#elif defined(SWIG)
#else
# error Cannot define thread_local
#endif
#endif