]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 606713 ] Removes a warning from cygwin build
authorJulian Smart <julian@anthemion.co.uk>
Tue, 10 Sep 2002 13:54:35 +0000 (13:54 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 10 Sep 2002 13:54:35 +0000 (13:54 +0000)
When building using Cygwin+gcc3.1.1 I get the following
warning:

"src/msw/app.cpp:122:25: warning: shlwapi.h: No such
file or directory"

(It seems strange to me that it's a warning instead of an
error?)

The attached patch adds a conditional case for
__CYGWIN__ when including shlwapi.h. (I hope I did it
the proper way, the #if's regarding build system setup
get a bit lengthy at times, I didn't see a shortcut for this
however)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp

index 8f9782d2d1c1d1e812704f1c9f73e51e8babb978..cfaf7b34e96d9afc9558d078c9456cde7ff2c99e 100644 (file)
 #endif
 
 #if _WIN32_IE >= 0x0300 && \
-    (!defined(__MINGW32__) || wxCHECK_W32API_VERSION( 2, 0 ))
+    (!defined(__MINGW32__) || wxCHECK_W32API_VERSION( 2, 0 )) && \
+    !defined(__CYGWIN__)
     #include <shlwapi.h>
 #endif