diff options
author | rpj <rpj> | 2001-02-14 04:57:48 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-02-14 04:57:48 +0000 |
commit | 723a2f090ff3fea7bb214699acd8eed432ace225 (patch) | |
tree | bae6c5d0f7eec2a77713e0703321dcf34aa77a5d | |
parent | 0cf1781fea67a659ad3087abf39709b7f650a6ce (diff) |
Add Win64 portability.snap-2000-12-29-patches
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | private.c | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -18,6 +18,10 @@ VCEFLAGS = /GX /TP /DPtW32NoCatchWarn #Structured Exceptions
VSEFLAGS =
+# For Win64
+#CFLAGS = /Bd /WX /W3 /MT /nologo /Yd /Zi /I. /D_WIN32_WINNT=0x400 /DPTW32_BUILD
+
+# For Win32
CFLAGS = /W3 /MT /nologo /Yd /Zi /I. /D_WIN32_WINNT=0x400 /DPTW32_BUILD
OBJ=attr.obj \
@@ -848,7 +848,7 @@ ptw32_sem_timedwait (sem_t * sem, const struct timespec * abstime) /* * subtract current system time from abstime */ - milliseconds = (abstime->tv_sec - currSysTime.time) * MILLISEC_PER_SEC; + milliseconds = (DWORD)(abstime->tv_sec - currSysTime.time) * MILLISEC_PER_SEC; milliseconds += ((abstime->tv_nsec + (NANOSEC_PER_MILLISEC/2)) / NANOSEC_PER_MILLISEC) - currSysTime.millitm; @@ -910,7 +910,11 @@ ptw32_throw(DWORD exception) { #if defined(_MSC_VER) && !defined(__cplusplus) +#ifdef _WIN64 + ULONG_PTR exceptionInformation[3]; +#else DWORD exceptionInformation[3]; +#endif #endif |