Skip to content

Commit

Permalink
Fix compilation of opengl_widgets on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Sep 24, 2024
1 parent b9c6a77 commit 2886789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/opengl_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2886789

Please sign in to comment.