X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac55e0a1a8c344626a94bc055e018630ed77b004..cc5bd48eff6f3a12b6066179d1b00d6404c9d921:/include/wx/stopwatch.h diff --git a/include/wx/stopwatch.h b/include/wx/stopwatch.h index dec4fa2905..cc12e772a0 100644 --- a/include/wx/stopwatch.h +++ b/include/wx/stopwatch.h @@ -99,4 +99,14 @@ extern wxMilliClock_t WXDLLIMPEXP_BASE wxGetLocalTimeMillis(); #define wxGetCurrentTime() wxGetLocalTime() +// on some really old systems gettimeofday() doesn't have the second argument, +// define wxGetTimeOfDay() to hide this difference +#ifdef HAVE_GETTIMEOFDAY + #ifdef WX_GETTIMEOFDAY_NO_TZ + #define wxGetTimeOfDay(tv) gettimeofday(tv) + #else + #define wxGetTimeOfDay(tv) gettimeofday((tv), NULL) + #endif +#endif // HAVE_GETTIMEOFDAY + #endif // _WX_STOPWATCH_H_