From: Pete Batard Date: Tue, 15 Nov 2011 01:11:12 +0000 (+0000) Subject: Windows: Fix undefined datatype 'LONG_PTR' in MSVC6 X-Git-Tag: upstream/1.0.21~744 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e15adcb0089882d10269ab77d35e193770ab90e;p=platform%2Fupstream%2Flibusb.git Windows: Fix undefined datatype 'LONG_PTR' in MSVC6 * issue reported by Elmi Signed-off-by: Michael Plante --- diff --git a/libusb/os/poll_windows.h b/libusb/os/poll_windows.h index fee89f5..4cc345b 100644 --- a/libusb/os/poll_windows.h +++ b/libusb/os/poll_windows.h @@ -38,7 +38,7 @@ #define STATUS_COMPLETED_SYNCHRONOUSLY STATUS_REPARSE #define HasOverlappedIoCompletedSync(lpOverlapped) (((DWORD)(lpOverlapped)->Internal) == STATUS_COMPLETED_SYNCHRONOUSLY) -#define DUMMY_HANDLE ((HANDLE)(LONG_PTR)-2) +#define DUMMY_HANDLE ((HANDLE)(LONG)-2) enum windows_version { WINDOWS_UNSUPPORTED,