summaryrefslogtreecommitdiff
path: root/autostatic.c
diff options
context:
space:
mode:
Diffstat (limited to 'autostatic.c')
-rwxr-xr-xautostatic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/autostatic.c b/autostatic.c
index b68c5af..ab9326a 100755
--- a/autostatic.c
+++ b/autostatic.c
@@ -36,7 +36,7 @@
#ifdef PTW32_STATIC_LIB
-#if defined(__MINGW32__) || defined(_MSC_VER)
+#if defined(__MINGW64__) || defined(__MINGW32__) || defined(_MSC_VER)
#include "pthread.h"
#include "implement.h"
@@ -52,7 +52,7 @@ static void on_process_exit(void)
pthread_win32_process_detach_np ();
}
-#if defined(__MINGW32__)
+#if defined(__MINGW64__) || defined(__MINGW32__)
# define attribute_section(a) __attribute__((section(a)))
#elif defined(_MSC_VER)
# define attribute_section(a) __pragma(section(a,long,read)); __declspec(allocate(a))
@@ -64,6 +64,6 @@ attribute_section(".dtors") void *gcc_dtor = on_process_exit;
attribute_section(".CRT$XCU") void *msc_ctor = on_process_init;
attribute_section(".CRT$XPU") void *msc_dtor = on_process_exit;
-#endif /* defined(__MINGW32__) || defined(_MSC_VER) */
+#endif /* defined(__MINGW64__) || defined(__MINGW32__) || defined(_MSC_VER) */
#endif /* PTW32_STATIC_LIB */