aboutsummaryrefslogtreecommitdiff
path: root/src/include/autoinit_funcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/autoinit_funcs.h')
-rw-r--r--src/include/autoinit_funcs.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/autoinit_funcs.h b/src/include/autoinit_funcs.h
index c4f3d014..a289b0bc 100644
--- a/src/include/autoinit_funcs.h
+++ b/src/include/autoinit_funcs.h
@@ -64,12 +64,12 @@
64#define AUTOINIT_FUNCS_INCLUDED 1 64#define AUTOINIT_FUNCS_INCLUDED 1
65 65
66/** 66/**
67* Current version of the header. 67* Current version of the header in packed BCD form.
68* 0x01093001 = 1.9.30-1. 68* 0x01093001 = 1.9.30-1.
69*/ 69*/
70#define AUTOINIT_FUNCS_VERSION 0x01000100 70#define AUTOINIT_FUNCS_VERSION 0x01000200
71 71
72#if defined(__GNUC__) 72#if defined(__GNUC__) || defined(__clang__)
73/* if possible - check for supported attribute */ 73/* if possible - check for supported attribute */
74#ifdef __has_attribute 74#ifdef __has_attribute
75#if ! __has_attribute (constructor) || ! __has_attribute (destructor) 75#if ! __has_attribute (constructor) || ! __has_attribute (destructor)
@@ -80,7 +80,8 @@
80 80
81/* "_attribute__ ((constructor))" is supported by GCC, clang and 81/* "_attribute__ ((constructor))" is supported by GCC, clang and
82 Sun/Oracle compiler starting from version 12.1. */ 82 Sun/Oracle compiler starting from version 12.1. */
83#if (defined(__GNUC__) && ! defined(_GNUC_ATTR_CONSTR_NOT_SUPPORTED)) || \ 83#if ((defined(__GNUC__) || defined(__clang__)) && \
84 ! defined(_GNUC_ATTR_CONSTR_NOT_SUPPORTED)) || \
84 (defined(__SUNPRO_C) && __SUNPRO_C + 0 >= 0x5100) 85 (defined(__SUNPRO_C) && __SUNPRO_C + 0 >= 0x5100)
85 86
86#define GNUC_SET_INIT_AND_DEINIT(FI,FD) \ 87#define GNUC_SET_INIT_AND_DEINIT(FI,FD) \