[PATCH 2/5] fix undefined datatype 'LONG_PTR' in MSVC6

Pete Batard pete at akeo.ie
Mon Jan 30 17:22:49 EST 2012


The next set of 4 patches ise only for MSVC6.

Original [PATCH 04/11] from Michael. MSVC6 won't compile without it.

Regards,

/Pete

-------- Original Message --------
Subject: [Libusb-devel] [PATCH 04/11] fix undefined datatype 'LONG_PTR' 
in MSVC6
Date: Fri, 23 Dec 2011 18:46:59 -0600
From: Michael Plante <michael.plante at gmail.com>
To: libusb-devel <libusb-devel at lists.sourceforge.net>

>From 37682151ef29fdf83a1532fc6e9b89a625d5b589 Mon Sep 17 00:00:00 2001
From: Pete Batard <pete at akeo.ie>
Date: Tue, 15 Nov 2011 01:11:12 +0000
Subject: [PATCH 04/11] fix undefined datatype 'LONG_PTR' in MSVC6

* issue reported by Satz Klauer

Signed-off-by: Michael Plante <michael.plante at gmail.com>
---
  libusb/os/poll_windows.h |    2 +-
  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,
-- 
1.7.3.1.msysgit.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-fix-undefined-datatype-LONG_PTR-in-MSVC6.patch
Type: application/octet-stream
Size: 902 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libusbx/attachments/20120130/f9a3ccfb/attachment.obj>


More information about the libusbx mailing list