We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07ed01e + 01c4b82 commit a460c92Copy full SHA for a460c92
driver/others/memory.c
@@ -147,9 +147,12 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
147
#elif (defined(OS_DARWIN) || defined(OS_SUNOS)) && defined(C_GCC)
148
#define CONSTRUCTOR __attribute__ ((constructor))
149
#define DESTRUCTOR __attribute__ ((destructor))
150
-#else
+#elif __GNUC__ && INIT_PRIORITY && ((GCC_VERSION >= 40300) || (CLANG_VERSION >= 20900))
151
#define CONSTRUCTOR __attribute__ ((constructor(101)))
152
#define DESTRUCTOR __attribute__ ((destructor(101)))
153
+#else
154
+#define CONSTRUCTOR __attribute__ ((constructor))
155
+#define DESTRUCTOR __attribute__ ((destructor))
156
#endif
157
158
#ifdef DYNAMIC_ARCH
0 commit comments