summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorMarkus Minichmayr <markus@tapkey.com>2022-10-06 08:33:17 +0200
committerAllen Winter <allen.winter@kdab.com>2022-11-22 05:12:15 -0500
commit2fdae45ec8f231bb418238f20556da2ad54d9d17 (patch)
tree2b54f87b94c248d2169aa943710fbd7f60a4364a /config.h.cmake
parent7834e1c798c00775253c59b5fae366bba3997cab (diff)
downloadlibical-git-2fdae45ec8f231bb418238f20556da2ad54d9d17.tar.gz
Mark mutable global variables as ICAL_GLOBAL_VAR, so we can specify storage modifiers (i.e. thread_local) if necessary.
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.h.cmake b/config.h.cmake
index a4b52aad..0e7306cc 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -582,3 +582,6 @@ typedef ssize_t IO_SSIZE_T;
#define ICALMEMORY_DEFAULT_MALLOC malloc
#define ICALMEMORY_DEFAULT_REALLOC realloc
#define ICALMEMORY_DEFAULT_FREE free
+
+/* ICAL_GLOBAL_VAR is applied to global variables, therefore allows specifying custom storage attributes. */
+#define ICAL_GLOBAL_VAR