diff options
author | sb <sb@openoffice.org> | 2011-01-31 13:32:40 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2011-01-31 13:32:40 +0100 |
commit | 6727dc5d9414e77975b9fd765993c6e207f872f3 (patch) | |
tree | 82a88625d03e0a2a78bd3e4267f0fe6706cdebc1 /sal/osl/w32/thread.c | |
parent | f78c98fc9c62094aa4eff5494efc38f15a0fc1ec (diff) |
sb138: #i115619# fix for MinGW
Diffstat (limited to 'sal/osl/w32/thread.c')
-rwxr-xr-x | sal/osl/w32/thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/w32/thread.c b/sal/osl/w32/thread.c index 7506c078c536..8d85c8867b2d 100755 --- a/sal/osl/w32/thread.c +++ b/sal/osl/w32/thread.c @@ -395,6 +395,7 @@ void SAL_CALL osl_yieldThread(void) } void SAL_CALL osl_setThreadName(char const * name) { +#ifdef _MSC_VER /* See <http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx>: */ #pragma pack(push, 8) struct { @@ -413,6 +414,9 @@ void SAL_CALL osl_setThreadName(char const * name) { 0x406D1388, 0, sizeof info / sizeof (ULONG_PTR), (ULONG_PTR *) &info); } __except (EXCEPTION_EXECUTE_HANDLER) {} +#else + (void) name; +#endif } typedef struct _TLS |