# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1680513418 0 # Node ID 0e47ca67aab0a848721fe15da7a7b5de0b078852 # Parent 0c5abc2ad5c53c03a628b6f68fab74afce0729b3 Win: Automatically disable AEROGLASS support on unsupported Visual C. Warn that AEROGLASS required Visual C 2010 and Windows XP. This allows us to use the same makefiles on ancient versions of Windows. diff -r 0c5abc2ad5c5 -r 0e47ca67aab0 win/XBrowseForFolder.cpp --- a/win/XBrowseForFolder.cpp Tue Mar 28 02:51:34 2023 +0000 +++ b/win/XBrowseForFolder.cpp Mon Apr 03 09:16:58 2023 +0000 @@ -32,6 +32,11 @@ /* Make sure we get the right version */ #define _WIN32_IE 0x0500 +/* Check that the compiler can support AEROGLASS */ +#if defined(_MSC_VER) && _MSC_VER < 1600 && defined(AEROGLASS) +#undef AEROGLASS +#endif + #ifndef __AFX_H__ #include #include diff -r 0c5abc2ad5c5 -r 0e47ca67aab0 win/dw.c --- a/win/dw.c Tue Mar 28 02:51:34 2023 +0000 +++ b/win/dw.c Mon Apr 03 09:16:58 2023 +0000 @@ -7,6 +7,12 @@ * */ +/* Check that the compiler can support AEROGLASS */ +#if defined(_MSC_VER) && _MSC_VER < 1600 && defined(AEROGLASS) +#pragma message ( "WARNING: Disabling AEROGLASS support, upgrade to Visual C 2010 and Windows XP." ) +#undef AEROGLASS +#endif + #ifdef AEROGLASS #define _WIN32_IE 0x0501 #define WINVER 0x501