Fixup USBXpress.h when SDK is not installed.

This commit is contained in:
Mark Liversedge
2011-03-19 22:01:36 +00:00
parent f8d60bfbe2
commit 40855b8773

View File

@@ -19,10 +19,13 @@
#ifndef gc_USBXpress_h
#define gc_USBXpress_h
#if defined (WIN32) && defined (GC_HAVE_USBXPRESS) // only include if windows and have USBXpress installed
#if defined WIN32
#include <Windows.h>
#ifdef GC_HAVE_USBXPRESS
#include <SiUSBXp.h> // for the constants etc
#endif
#define GARMIN_USB1_PID 0x0fcf
#define GARMIN_USB1_VID 0x1004
@@ -37,5 +40,5 @@ public:
static int write(HANDLE *handle, unsigned char *buf, int bytes);
};
#endif
#endif
#endif // WIN32
#endif // gc_USBXpress_h