changeset 2987:0e47ca67aab0

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 03 Apr 2023 09:16:58 +0000
parents 0c5abc2ad5c5
children dfab2dfa9bc1
files win/XBrowseForFolder.cpp win/dw.c
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 <windows.h>
 #include <tchar.h>
--- 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