diff options
| author | prife <[email protected]> | 2013-02-26 16:03:08 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-02-26 16:03:08 +0800 |
| commit | 9ccdf4172ee0fc3e7fe8ac0db122a81572e9c0f8 (patch) | |
| tree | d46136702ab7898c6ac2488447a7d548ff76a252 /libcpu/sim | |
| parent | 278cc914b3ba76a0c7a6b46d23f0f1bbc7491331 (diff) | |
basic mingw support for simulator: kernel and finsh
Diffstat (limited to 'libcpu/sim')
| -rw-r--r-- | libcpu/sim/win32/cpu_port.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcpu/sim/win32/cpu_port.c b/libcpu/sim/win32/cpu_port.c index 38c387b196..6bf3c79cf7 100644 --- a/libcpu/sim/win32/cpu_port.c +++ b/libcpu/sim/win32/cpu_port.c @@ -111,6 +111,7 @@ static DWORD WINAPI ThreadforKeyGet(LPVOID lpParam); static void SetThreadName(DWORD dwThreadID, char* threadName) { +#if defined(_MSC_VER) THREADNAME_INFO info; info.dwType = 0x1000; info.szName = threadName; @@ -124,6 +125,7 @@ static void SetThreadName(DWORD dwThreadID, char* threadName) __except(EXCEPTION_EXECUTE_HANDLER) { } +#endif } /* |
