diff options
author | antirez <antirez> | 2005-03-02 14:20:37 +0000 |
---|---|---|
committer | antirez <antirez> | 2005-03-02 14:20:37 +0000 |
commit | 94883fb48db43a0294a1c3dd749eb224a7c40c5f (patch) | |
tree | e03d36954daeb62324eee5ce0ae4c5b540740ef1 /jim-win32.c | |
parent | 23fc2772eb021846ecccd2966a9a3575a687100c (diff) | |
download | jimtcl-94883fb48db43a0294a1c3dd749eb224a7c40c5f.zip jimtcl-94883fb48db43a0294a1c3dd749eb224a7c40c5f.tar.gz jimtcl-94883fb48db43a0294a1c3dd749eb224a7c40c5f.tar.bz2 |
win32 compilation under mingw fixed,
GetPerformanceInfo() is not available under mingw.
Diffstat (limited to 'jim-win32.c')
-rw-r--r-- | jim-win32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jim-win32.c b/jim-win32.c index d4df167..4cbf481 100644 --- a/jim-win32.c +++ b/jim-win32.c @@ -336,6 +336,7 @@ Win32_GetSystemTime(Jim_Interp *interp, int objc, Jim_Obj **objv) return JIM_OK; } +#ifndef __MINGW32__ /* function not available on mingw */ // FIX ME: win2k+ so should do version checks really. static int Win32_GetPerformanceInfo(Jim_Interp *interp, int objc, Jim_Obj **objv) @@ -372,6 +373,7 @@ Win32_GetPerformanceInfo(Jim_Interp *interp, int objc, Jim_Obj **objv) Jim_SetResult(interp, Jim_NewListObj(interp, a, n)); return JIM_OK; } +#endif /* !MINGW32 */ static int Win32_SetComputerName(Jim_Interp *interp, int objc, Jim_Obj **objv) @@ -479,7 +481,9 @@ Jim_OnLoad(Jim_Interp *interp) CMD(GetVersion); CMD(GetTickCount); CMD(GetSystemTime); +#ifndef __MINGW32__ CMD(GetPerformanceInfo); +#endif CMD(GetModuleHandle); CMD(LoadLibrary); CMD(FreeLibrary); |