[PATCH v2 2/8] Use lower case for Win32 includes
Ladislav Michl <[email protected]> Tue, 4 Dec 2018 22:21:18 +0100
| Newsgroups | gmane.linux.drivers.gnokii |
|---|---|
| Message-ID | <20181204212118.GC10937@lenoch> |
From: Fabrizio Gennari <[email protected]> mingw32 provides lower case names for Win32 header files, use lower case names in #include directives. --- CHANGES: -v2: Dropped #elif defined(_MSC_VER) change, Eventually that will be sent separately ChangeLog | 4 ++++ common/devices/winbluetooth.c | 6 +++--- include/gnokii.h.in | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d09275ce..ed6d42ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -117,6 +117,10 @@ * build updates o use the native Autoconf support for cross-compilation, that is passing --host= to the configure script + * win32 updates + o since Linux filesystems are case-sensitive, and MinGW-W64 + provides lower case names for Win32 header files, use lower + case names in #include directives 0.6.31 ====== diff --git a/common/devices/winbluetooth.c b/common/devices/winbluetooth.c index 832a46f9..a898e2e6 100644 --- a/common/devices/winbluetooth.c +++ b/common/devices/winbluetooth.c @@ -12,10 +12,10 @@ #ifdef HAVE_BLUETOOTH -#include <Winsock2.h> +#include <winsock2.h> #include <mmsystem.h> -#include <Ws2bth.h> -#include <BluetoothAPIs.h> +#include <ws2bth.h> +#include <bluetoothapis.h> #include "compat.h" #include "gnokii.h" diff --git a/include/gnokii.h.in b/include/gnokii.h.in index b3253455..b1bb0c5c 100644 --- a/include/gnokii.h.in +++ b/include/gnokii.h.in @@ -32,7 +32,7 @@ extern "C" { # include <inttypes.h> # include <sys/time.h> #elif defined(_MSC_VER) && defined(WIN32) -# include <Winsock.h> /* for struct timeval */ +# include <winsock.h> /* for struct timeval */ typedef unsigned char uint8_t; #endif -- 2.20.0.rc2