瀏覽代碼

Disable thread naming on Win64 for now.

We can't use _try/_except without the C runtime, and we can't use inline
 asm with the Win64 compiler. We'll need to move this to an .asm file or
 something later.
Ryan C. Gordon 12 年之前
父節點
當前提交
83383c6527
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/thread/windows/SDL_systhread.c

+ 1 - 1
src/thread/windows/SDL_systhread.c

@@ -168,7 +168,7 @@ void
 SDL_SYS_SetupThread(const char *name)
 SDL_SYS_SetupThread(const char *name)
 {
 {
     if (name != NULL) {
     if (name != NULL) {
-        #ifdef _MSC_VER
+        #if (defined(_MSC_VER) && defined(_M_IX86))
         /* This magic tells the debugger to name a thread if it's listening.
         /* This magic tells the debugger to name a thread if it's listening.
             The inline asm sets up SEH (__try/__except) without C runtime
             The inline asm sets up SEH (__try/__except) without C runtime
             support. See Microsoft Systems Journal, January 1997:
             support. See Microsoft Systems Journal, January 1997: