summaryrefslogtreecommitdiff
path: root/autostatic.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-06 10:46:44 +0000
committerrpj <rpj>2011-03-06 10:46:44 +0000
commit1183e5acfa10c7bda1dc39034d6e2fa6dec6016f (patch)
treefd5220ed96e0fef2390b72ad170b62f0516242ce /autostatic.c
parent85dfeaf6133e1b74eefed26cf76c3f8631c7dd1d (diff)
64 bit compatibility (mingw64)
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 */