Better fix from Max Horn SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Sep 2009 19:23:04 +0000
branchSDL-1.2
changeset 4251ed5e32187eec
parent 4250 c483b474b1cf
child 4252 052dc40d917f
Better fix from Max Horn
src/video/quartz/SDL_QuartzEvents.m
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Sun Sep 27 06:20:27 2009 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Sun Sep 27 19:23:04 2009 +0000
     1.3 @@ -31,7 +31,13 @@
     1.4  /*
     1.5   * On Leopard, this is missing from the 64-bit headers
     1.6   */
     1.7 -#ifndef UsrActivity
     1.8 +#if defined(__LP64__) && !defined(__POWER__)
     1.9 +/*
    1.10 + * Workaround for a bug in the 10.5 SDK: By accident, OSService.h does
    1.11 + * not include Power.h at all when compiling in 64bit mode. This has
    1.12 + * been fixed in 10.6, but for 10.5, we manually define UsrActivity
    1.13 + * to ensure compilation works.
    1.14 + */
    1.15  #define UsrActivity 1
    1.16  #endif
    1.17