diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-12 09:38:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-12 09:38:44 +0100 |
commit | 4cd33c30b0d5000dc84280c8ecdc3f49f7b251a7 (patch) | |
tree | 5a9c781df4707b0185cd90ab3f2a519be0c989c8 | |
parent | 9aa15f708bbadb3b6f280d4632eeb24441c62c44 (diff) | |
download | libmicrohttpd-4cd33c30b0d5000dc84280c8ecdc3f49f7b251a7.tar.gz libmicrohttpd-4cd33c30b0d5000dc84280c8ecdc3f49f7b251a7.zip |
fix #4887
-rw-r--r-- | src/include/autoinit_funcs.h | 4 |
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) \ |