summaryrefslogtreecommitdiff
path: root/test/menubar.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-02 18:48:13 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-02-02 18:48:24 +0100
commit6276822e9e8f505756b386637df9e14dd5a8e2fb (patch)
tree9294dc6114e2d92ea4eef6041a6809e2e4c44a27 /test/menubar.cxx
parent4e75549e7bd8b0ea032cf279066d0fac09577067 (diff)
Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__
Diffstat (limited to 'test/menubar.cxx')
-rw-r--r--test/menubar.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx
index f8b1aaffc..a1c7bc7fe 100644
--- a/test/menubar.cxx
+++ b/test/menubar.cxx
@@ -1,7 +1,7 @@
//
// Menubar test program for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2020 by Bill Spitzak and others.
+// Copyright 1998-2023 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -15,6 +15,9 @@
//
#include <FL/Fl.H>
+#if defined(FLTK_USE_X11) && defined(__APPLE__)
+# undef __APPLE__
+#endif
#ifdef __APPLE__
#include <FL/platform.H> // for Fl_Mac_App_Menu
#endif