diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-06 21:42:29 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-06 21:42:40 +0100 |
| commit | 160eb2926d9dad336e37b5e4752fffea0c79bd13 (patch) | |
| tree | e33a6015fb647fb263f422568e7c41472b490062 | |
| parent | f1b2e92f077ca8de4b978e0e27e23f88749500af (diff) | |
Remove usage of __APPLE_QUARTZ__ (#673)
| -rw-r--r-- | CMake/setup.cmake | 1 | ||||
| -rw-r--r-- | configh.cmake.in | 10 | ||||
| -rw-r--r-- | configh.in | 10 | ||||
| -rw-r--r-- | configure.ac | 2 | ||||
| -rw-r--r-- | src/fl_overlay.cxx | 2 |
5 files changed, 1 insertions, 24 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake index bc98aa58e..1ff5585ce 100644 --- a/CMake/setup.cmake +++ b/CMake/setup.cmake @@ -101,7 +101,6 @@ if (APPLE) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LIBCPP_HAS_THREAD_API_PTHREAD") endif (NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0)) else () - set (__APPLE_QUARTZ__ 1) set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -framework Cocoa") set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -framework Cocoa") endif (OPTION_APPLE_X11) diff --git a/configh.cmake.in b/configh.cmake.in index d189d3bf9..99ff77ca8 100644 --- a/configh.cmake.in +++ b/configh.cmake.in @@ -148,16 +148,6 @@ #cmakedefine01 HAVE_X11_XREGION_H /* - * __APPLE_QUARTZ__: - * - * All Apple implementations are now based on Quartz and Cocoa, - * so this flag should always be on for Mac OS X. This flag has - * no meaning on operating systems other than Mac OS X. - */ - -#cmakedefine __APPLE_QUARTZ__ 1 - -/* * HAVE_GL_OVERLAY: * * It is possible your GL has an overlay even if X does not. If so, diff --git a/configh.in b/configh.in index 091d06137..f8a6e39b2 100644 --- a/configh.in +++ b/configh.in @@ -147,16 +147,6 @@ #define HAVE_X11_XREGION_H 0 /* - * __APPLE_QUARTZ__: - * - * All Apple implementations are now based on Quartz and Cocoa, - * so this flag should always be on for Mac OS X. This flag has - * no meaning on operating systems other than Mac OS X. - */ - -#undef __APPLE_QUARTZ__ - -/* * HAVE_GL_OVERLAY: * * It is possible your GL has an overlay even if X does not. If so, diff --git a/configure.ac b/configure.ac index 16d5e2611..cf7c8837e 100644 --- a/configure.ac +++ b/configure.ac @@ -952,8 +952,6 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [ HLINKS="#" ]) ], [darwin*], [ - AC_DEFINE([__APPLE_QUARTZ__]) - BUILD="OSX" # MacOS X uses Cocoa for graphics. diff --git a/src/fl_overlay.cxx b/src/fl_overlay.cxx index 0c2d0db11..a4bacb493 100644 --- a/src/fl_overlay.cxx +++ b/src/fl_overlay.cxx @@ -99,7 +99,7 @@ static void draw_current_rect() { static void erase_current_rect() { #ifdef USE_XOR -# ifdef __APPLE_QUARTZ__ // PORTME: Fl_Window_Driver - platform overlay +# ifdef __APPLE__ // PORTME: Fl_Window_Driver - platform overlay fl_rect(px, py, pw, ph); # else draw_current_rect(); |
