diff options
Diffstat (limited to 'js/src/prmjtime.cpp')
-rw-r--r-- | js/src/prmjtime.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/js/src/prmjtime.cpp b/js/src/prmjtime.cpp index 4fa2ae235..705dbf354 100644 --- a/js/src/prmjtime.cpp +++ b/js/src/prmjtime.cpp @@ -23,9 +23,6 @@ #define PRMJ_DO_MILLISECONDS 1 -#ifdef XP_OS2 -#include <sys/timeb.h> -#endif #ifdef XP_WIN #include <windef.h> #include <winbase.h> @@ -182,17 +179,7 @@ static PRCallOnceType calibrationOnce = { 0 }; #endif /* XP_WIN */ - -#if defined(XP_OS2) -int64_t -PRMJ_Now(void) -{ - struct timeb b; - ftime(&b); - return (int64_t(b.time) * PRMJ_USEC_PER_SEC) + (int64_t(b.millitm) * PRMJ_USEC_PER_MSEC); -} - -#elif defined(XP_UNIX) +#if defined(XP_UNIX) int64_t PRMJ_Now(void) { @@ -417,7 +404,7 @@ size_t PRMJ_FormatTime(char *buf, int buflen, const char *fmt, PRMJTime *prtm) { size_t result = 0; -#if defined(XP_UNIX) || defined(XP_WIN) || defined(XP_OS2) +#if defined(XP_UNIX) || defined(XP_WIN) struct tm a; int fake_tm_year = 0; #ifdef NS_HAVE_INVALID_PARAMETER_HANDLER |