From 28867898832e5bc223d4cc27495d7364ad6d9f71 Mon Sep 17 00:00:00 2001
From: Jarod42 <Jarod42@users.noreply.github.com>
Date: Mon, 23 Sep 2024 23:57:49 +0200
Subject: [PATCH] Fix compilation of opengl_widgets on windows.

---
 examples/opengl_helper.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/opengl_helper.hpp b/examples/opengl_helper.hpp
index de1e419..7055b4b 100644
--- a/examples/opengl_helper.hpp
+++ b/examples/opengl_helper.hpp
@@ -11,10 +11,10 @@
 
 #if defined(_WIN32)
 # include <windows.h>
-// Sometimes windows.h defines DELETE which causes a compilation
-// error in a Guichan header.
-# if defined(DELETE)
-#  undef DELETE
+// <windows.h> #defines MessageBox (as MessageBoxA or MessageBoxW)
+// which causes a compilation error in a Guichan header.
+# if defined(MessageBox)
+#  undef MessageBox
 # endif
 #endif