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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/autoinit_funcs.h b/src/include/autoinit_funcs.h
index 2f309e18..6d5117e1 100644
--- a/src/include/autoinit_funcs.h
+++ b/src/include/autoinit_funcs.h
@@ -67,7 +67,7 @@
67*/ 67*/
68#define AUTOINIT_FUNCS_VERSION 0x01000001 68#define AUTOINIT_FUNCS_VERSION 0x01000001
69 69
70#if defined(__GNUC__) 70#if defined(__GNUC__) || defined(__SUNPRO_C)
71#/* if possible - check for supported attribute */ 71#/* if possible - check for supported attribute */
72#ifdef __has_attribute 72#ifdef __has_attribute
73#if !__has_attribute(constructor) || !__has_attribute(destructor) 73#if !__has_attribute(constructor) || !__has_attribute(destructor)
@@ -76,7 +76,7 @@
76#endif /* __has_attribute */ 76#endif /* __has_attribute */
77#endif /* __GNUC__ */ 77#endif /* __GNUC__ */
78 78
79#if defined(__GNUC__) && !defined(_GNUC_ATTR_CONSTR_NOT_SUPPORTED) 79#if (defined(__GNUC__) || defined(__SUNPRO_C)) && !defined(_GNUC_ATTR_CONSTR_NOT_SUPPORTED)
80 80
81#define GNUC_SET_INIT_AND_DEINIT(FI,FD) \ 81#define GNUC_SET_INIT_AND_DEINIT(FI,FD) \
82 void __attribute__ ((constructor)) _GNUC_init_helper_##FI(void) \ 82 void __attribute__ ((constructor)) _GNUC_init_helper_##FI(void) \