From dbb00f65818328a027fe6967c6b2b04bdfdfdbd2 Mon Sep 17 00:00:00 2001 From: Boris Pek Date: Wed, 10 Oct 2018 02:33:47 +0300 Subject: [PATCH] fix builds with case sensitive includes Tested during cross-compilation for MS Windows using MinGW. --- examples/osghangglide/hat.cpp | 2 +- src/osgPlugins/ZeroConfDevice/CMakeLists.txt | 2 +- src/osgPlugins/ply/typedefs.h | 4 ++-- src/osgPlugins/vrml/CMakeLists.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/osghangglide/hat.cpp b/examples/osghangglide/hat.cpp index 3f4f49e3e..1f6587bf9 100644 --- a/examples/osghangglide/hat.cpp +++ b/examples/osghangglide/hat.cpp @@ -17,7 +17,7 @@ */ #ifdef _MSC_VER -#include +#include #pragma warning( disable : 4244 ) #endif diff --git a/src/osgPlugins/ZeroConfDevice/CMakeLists.txt b/src/osgPlugins/ZeroConfDevice/CMakeLists.txt index 03e9e8787..1fdcabfab 100644 --- a/src/osgPlugins/ZeroConfDevice/CMakeLists.txt +++ b/src/osgPlugins/ZeroConfDevice/CMakeLists.txt @@ -19,7 +19,7 @@ IF(WIN32) mdns_win/dns_sd.h mdns_win/dns-sd.c ) - SET(TARGET_EXTERNAL_LIBRARIES "${TARGET_EXTERNAL_LIBRARIES};Ws2_32.lib;winmm") + SET(TARGET_EXTERNAL_LIBRARIES "${TARGET_EXTERNAL_LIBRARIES};ws2_32.lib;winmm") SET(TARGET_LIBRARIES_VARS ZEROCONF_LIBRARY) ADD_DEFINITIONS(-DNOT_HAVE_GETOPT) ADD_DEFINITIONS(-DNOT_HAVE_SETLINEBUF) diff --git a/src/osgPlugins/ply/typedefs.h b/src/osgPlugins/ply/typedefs.h index 4d6c833d1..7a1e33436 100644 --- a/src/osgPlugins/ply/typedefs.h +++ b/src/osgPlugins/ply/typedefs.h @@ -13,8 +13,8 @@ #define MESH_TYPEDEFS_H # if defined(_MSC_VER) -# include -# include +# include +# include # endif # include diff --git a/src/osgPlugins/vrml/CMakeLists.txt b/src/osgPlugins/vrml/CMakeLists.txt index cacff5a31..194bb9a19 100644 --- a/src/osgPlugins/vrml/CMakeLists.txt +++ b/src/osgPlugins/vrml/CMakeLists.txt @@ -27,7 +27,7 @@ IF (WIN32) PNG_LIBRARY ZLIB_LIBRARIES) SET(TARGET_EXTERNAL_LIBRARIES - Ws2_32.lib) + ws2_32.lib) ELSE() SET(TARGET_LIBRARIES_VARS OPENVRML_LIBRARY)