diff options
| -rw-r--r-- | FL/mac.H | 32 | ||||
| -rw-r--r-- | test/blocks.cxx | 3 | ||||
| -rw-r--r-- | test/sudoku.cxx | 3 |
3 files changed, 22 insertions, 16 deletions
@@ -49,6 +49,22 @@ typedef CGContextRef Fl_Offscreen; #include <ApplicationServices/ApplicationServices.h> #undef check // because of Fl::check() +#ifndef MAC_OS_X_VERSION_10_4 +#define MAC_OS_X_VERSION_10_4 1040 +#endif +#ifndef MAC_OS_X_VERSION_10_5 +#define MAC_OS_X_VERSION_10_5 1050 +#endif +#ifndef MAC_OS_X_VERSION_10_6 +#define MAC_OS_X_VERSION_10_6 1060 +#endif +#ifndef MAC_OS_X_VERSION_10_7 +#define MAC_OS_X_VERSION_10_7 1070 +#endif +#ifndef MAC_OS_X_VERSION_10_8 +#define MAC_OS_X_VERSION_10_8 1080 +#endif + #ifdef __OBJC__ @class NSCursor; #else @@ -150,22 +166,6 @@ extern Window fl_window; #endif // FL_LIBRARY || FL_INTERNALS -#ifndef MAC_OS_X_VERSION_10_4 -#define MAC_OS_X_VERSION_10_4 1040 -#endif -#ifndef MAC_OS_X_VERSION_10_5 -#define MAC_OS_X_VERSION_10_5 1050 -#endif -#ifndef MAC_OS_X_VERSION_10_6 -#define MAC_OS_X_VERSION_10_6 1060 -#endif -#ifndef MAC_OS_X_VERSION_10_7 -#define MAC_OS_X_VERSION_10_7 1070 -#endif -#ifndef MAC_OS_X_VERSION_10_8 -#define MAC_OS_X_VERSION_10_8 1080 -#endif - typedef CGImageRef Fl_Bitmask; extern CGContextRef fl_gc; diff --git a/test/blocks.cxx b/test/blocks.cxx index bb2f0191a..43c3ffe19 100644 --- a/test/blocks.cxx +++ b/test/blocks.cxx @@ -139,6 +139,9 @@ class BlockSound { // Private, OS-specific data... #ifdef __APPLE__ AudioDeviceID device; +#ifndef MAC_OS_X_VERSION_10_5 +#define MAC_OS_X_VERSION_10_5 1050 +#endif # if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 AudioDeviceIOProcID audio_proc_id; # endif diff --git a/test/sudoku.cxx b/test/sudoku.cxx index f6a27c784..27677b3e9 100644 --- a/test/sudoku.cxx +++ b/test/sudoku.cxx @@ -90,6 +90,9 @@ class SudokuSound { // Private, OS-specific data... #ifdef __APPLE__ AudioDeviceID device; +#ifndef MAC_OS_X_VERSION_10_5 +#define MAC_OS_X_VERSION_10_5 1050 +#endif # if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 AudioDeviceIOProcID audio_proc_id; # endif |
