diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2009-05-30 09:05:56 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2009-05-30 11:05:56 +0200 |
commit | a1bda0d7e8e5f4aac6287f4f607952f056c8bedf (patch) | |
tree | f42b3ca66b386fb3dfc7ef132a6272431158fccf /gcc/gthr-win32.h | |
parent | ec5c6f4a5fa9bba3cff80441b46b9ed6e16fa961 (diff) | |
download | gcc-a1bda0d7e8e5f4aac6287f4f607952f056c8bedf.zip gcc-a1bda0d7e8e5f4aac6287f4f607952f056c8bedf.tar.gz gcc-a1bda0d7e8e5f4aac6287f4f607952f056c8bedf.tar.bz2 |
mingw-tls.c: New file.
2009-05-30 Kai Tietz <kai.tietz@onevision.com>
* config/i386/mingw-tls.c: New file.
* config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add
mingw-tls.c file.
* gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define
it for targets defining _WIN32 but not __CYGWIN__.
From-SVN: r148000
Diffstat (limited to 'gcc/gthr-win32.h')
-rw-r--r-- | gcc/gthr-win32.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/gthr-win32.h b/gcc/gthr-win32.h index a4fd32b..74ac617 100644 --- a/gcc/gthr-win32.h +++ b/gcc/gthr-win32.h @@ -361,15 +361,14 @@ typedef struct { __gthread_recursive_mutex_init_function #define __GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT {-1, 0, 0, 0} -#if __MINGW32_MAJOR_VERSION >= 1 || \ - (__MINGW32_MAJOR_VERSION == 0 && __MINGW32_MINOR_VERSION > 2) +#if defined (_WIN32) && !defined(__CYGWIN__) #define MINGW32_SUPPORTS_MT_EH 1 /* Mingw runtime >= v0.3 provides a magic variable that is set to nonzero if -mthreads option was specified, or 0 otherwise. This is to get around the lack of weak symbols in PE-COFF. */ extern int _CRT_MT; extern int __mingwthr_key_dtor (unsigned long, void (*) (void *)); -#endif /* __MINGW32__ version */ +#endif /* _WIN32 && !__CYGWIN__ */ /* The Windows95 kernel does not export InterlockedCompareExchange. This provides a substitute. When building apps that reference |