From 1183e5acfa10c7bda1dc39034d6e2fa6dec6016f Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 6 Mar 2011 10:46:44 +0000 Subject: 64 bit compatibility (mingw64) --- autostatic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'autostatic.c') 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 */ -- cgit v1.2.3