Ignore:
Timestamp:
Oct 1, 2001, 3:30:13 AM (24 years ago)
Author:
bird
Message:

Watcom: GetCurrentThreadId workaround. () -> (void).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/odinwrap.h

    r6893 r6912  
    5757
    5858// ---------------------------------------------------------------------------
    59 extern unsigned long int WIN32API GetCurrentThreadId();     // kernel32
    60 extern unsigned long int WIN32API dbg_GetThreadCallDepth(); // kernel32
    61 extern void              WIN32API dbg_IncThreadCallDepth(); // kernel32
    62 extern void              WIN32API dbg_DecThreadCallDepth(); // kernel32
     59#ifdef __WATCOMC__
     60//this doens't work with watcom because doubly declared somewhere :-(
     61//extern unsigned long int WIN32API GetCurrentThreadId(void);     // kernel32
     62#else
     63extern unsigned long int WIN32API GetCurrentThreadId(void);     // kernel32
     64#endif
     65extern unsigned long int WIN32API dbg_GetThreadCallDepth(void); // kernel32
     66extern void              WIN32API dbg_IncThreadCallDepth(void); // kernel32
     67extern void              WIN32API dbg_DecThreadCallDepth(void); // kernel32
    6368
    6469// ---------------------------------------------------------------------------
     
    8186     unsigned long ulElapsed;     \
    8287     QueryPerformanceCounter(&liStart);
    83  
    84  
     88
     89
    8590#  define PROFILE_STOP(a)            \
    8691     QueryPerformanceCounter(&liEnd);\
     
    114119    dprintf(("WARNING: FS: for thread %08xh corrupted by "a, GetCurrentThreadId())); \
    115120  }
    116  
    117  
     121
     122
    118123/****************************************************************************
    119124 * General Wrapper Macros (debug instrumented)                              *
     
    706711
    707712#define FNPROLOGUE(a)   \
    708   USHORT sel = GetFS(); 
     713  USHORT sel = GetFS();
    709714
    710715#define FNEPILOGUE(a)   \
Note: See TracChangeset for help on using the changeset viewer.