diff options
author | Pete Batard <pete@akeo.ie> | 2012-04-09 22:28:34 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2012-04-09 22:28:34 +0100 |
commit | 974251ba94861d03dbe9837a902d84e83d301cda (patch) | |
tree | 78a6326a546edb8bfb8d48cdae1e001b0bab5de8 /libusb/os/poll_windows.c | |
parent | 312ba2dbf193a2dad4dbce0867f05c8fc0fee5b8 (diff) | |
download | libusb-974251ba94861d03dbe9837a902d84e83d301cda.tar.gz |
Windows: Fix support for variadic macros
* Visual C++ did not support variadic macros until VS2005, as per
http://msdn.microsoft.com/en-us/library/ms177415%28v=VS.80%29.aspx
Diffstat (limited to 'libusb/os/poll_windows.c')
-rw-r--r-- | libusb/os/poll_windows.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index 99cc5e1..5204bcb 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -52,9 +52,9 @@ #if defined(DEBUG_POLL_WINDOWS) #define poll_dbg usbi_dbg #else -// MSVC6 cannot use a variadic argument and non MSVC +// MSVC++ < 2005 cannot use a variadic argument and non MSVC // compilers produce warnings if parenthesis are ommitted. -#if defined(_MSC_VER) +#if defined(_MSC_VER) && _MSC_VER < 1400 #define poll_dbg #else #define poll_dbg(...) |