diff options
author | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:20 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2013-08-10 12:47:20 +0000 |
commit | 8222e18586c2ae997431f87ee79a0cc9a7ba44aa (patch) | |
tree | 6b8e3dde1ef26a082cb7e88eed317966fac13d1f | |
parent | f42d60150dbddf0da00173667f963c8bdb038efb (diff) | |
download | openttd-8222e18586c2ae997431f87ee79a0cc9a7ba44aa.tar.xz |
(svn r25712) -Fix: define kCGBitmapByteOrder32Host to 0 if it's missing.
-rw-r--r-- | src/video/cocoa/wnd_quartz.mm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video/cocoa/wnd_quartz.mm b/src/video/cocoa/wnd_quartz.mm index 4274c2ca4..074d608e2 100644 --- a/src/video/cocoa/wnd_quartz.mm +++ b/src/video/cocoa/wnd_quartz.mm @@ -34,6 +34,13 @@ #include "../../core/math_func.hpp" #include "../../gfx_func.h" +/* On some old versions of MAC OS this may not be defined. + * Those versions generally only produce code for PPC. So it should be safe to + * set this to 0. */ +#ifndef kCGBitmapByteOrder32Host +#define kCGBitmapByteOrder32Host 0 +#endif + /** * Important notice regarding all modifications!!!!!!! * There are certain limitations because the file is objective C++. |