summaryrefslogtreecommitdiffstats
path: root/libdimension/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/compiler.h')
-rw-r--r--libdimension/compiler.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdimension/compiler.h b/libdimension/compiler.h
index cb77ca6..d6435d0 100644
--- a/libdimension/compiler.h
+++ b/libdimension/compiler.h
@@ -39,9 +39,13 @@
#endif
#ifdef __GNUC__
- #define DMNSN_HOT __attribute__((hot))
- #define DMNSN_INTERNAL __attribute__((visibility("hidden")))
+ #define DMNSN_HOT __attribute__((hot))
+ #define DMNSN_INTERNAL __attribute__((visibility("hidden")))
+ #define DMNSN_DESTRUCTOR __attribute__((destructor(102)))
+ #define DMNSN_LATE_DESTRUCTOR __attribute__((destructor(101)))
#else
#define DMNSN_HOT
#define DMNSN_INTERNAL
+ #define DMNSN_DESTRUCTOR
+ #define DMNSN_LATE_DESTRUCTOR
#endif