summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2011-11-15 01:11:12 +0000
committerPeter Stuge <peter@stuge.se>2012-02-08 14:46:14 +0100
commit8e15adcb0089882d10269ab77d35e193770ab90e (patch)
tree2285f79070659bde7279f21b17ec3c22a46d0c99
parent17ad642cae618cc09c5516612fa3880d4b6b8635 (diff)
downloadlibusb-8e15adcb0089882d10269ab77d35e193770ab90e.tar.gz
Windows: Fix undefined datatype 'LONG_PTR' in MSVC6
* issue reported by Elmi Signed-off-by: Michael Plante <michael.plante@gmail.com>
-rw-r--r--libusb/os/poll_windows.h2
1 files changed, 1 insertions, 1 deletions
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,