src/thread/pthread/SDL_systhread.c
changeset 3578 0d1b16ee0bca
parent 3162 dc1eb82ffdaa
child 3697 f7b03b6838cb
     1.1 --- a/src/thread/pthread/SDL_systhread.c	Wed Dec 16 03:02:31 2009 +0000
     1.2 +++ b/src/thread/pthread/SDL_systhread.c	Wed Dec 16 04:48:11 2009 +0000
     1.3 @@ -38,7 +38,7 @@
     1.4  /* RISC OS needs to know the main thread for
     1.5   * it's timer and event processing. */
     1.6  int riscos_using_threads = 0;
     1.7 -Uint32 riscos_main_thread = 0;  /* Thread running events */
     1.8 +SDL_threadID riscos_main_thread = 0;  /* Thread running events */
     1.9  #endif
    1.10  
    1.11  
    1.12 @@ -99,11 +99,10 @@
    1.13  #endif
    1.14  }
    1.15  
    1.16 -/* WARNING:  This may not work for systems with 64-bit pid_t */
    1.17 -Uint32
    1.18 +SDL_threadID
    1.19  SDL_ThreadID(void)
    1.20  {
    1.21 -    return ((Uint32) pthread_self());
    1.22 +    return ((SDL_threadID) pthread_self());
    1.23  }
    1.24  
    1.25  void