- Timestamp:
- 16/11/11 10:33:07 (6 months ago)
- File:
-
- 1 edited
-
trunk/src/napi.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/napi.c
r1757 r1760 53 53 #define LIBSEP ";" 54 54 #define PATHSEP "\\" 55 #define THREAD_LOCAL __declspec(thread) 55 56 #else 56 57 #define LIBSEP ":" 57 58 #define PATHSEP "/" 59 #define THREAD_LOCAL __thread 58 60 #endif 59 61 … … 66 68 */ 67 69 #include <windows.h> 70 68 71 69 72 static CRITICAL_SECTION nx_critical; … … 292 295 static void (*NXEHIReportError)(void *pData, char *string) = NXNXNXReportError; 293 296 #ifdef HAVE_TLS 294 static __threadvoid *NXEHpTData = NULL;295 static __threadvoid (*NXEHIReportTError)(void *pData, char *string) = NULL;297 static THREAD_LOCAL void *NXEHpTData = NULL; 298 static THREAD_LOCAL void (*NXEHIReportTError)(void *pData, char *string) = NULL; 296 299 #endif 297 300 … … 347 350 static ErrFunc last_global_errfunc = NXNXNXReportError; 348 351 #ifdef HAVE_TLS 349 static __threadErrFunc last_thread_errfunc = NULL;352 static THREAD_LOCAL ErrFunc last_thread_errfunc = NULL; 350 353 #endif 351 354
Note: See TracChangeset
for help on using the changeset viewer.
