Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.
authorAlex Szpakowski <slime73@gmail.com>
Sat, 16 May 2015 12:05:42 -0300
changeset 9600d52c2129c9ac
parent 9599 223fbcc6a327
child 9601 4c65108b7ac3
Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.
src/power/macosx/SDL_syspower.c
     1.1 --- a/src/power/macosx/SDL_syspower.c	Wed May 13 22:39:32 2015 -0700
     1.2 +++ b/src/power/macosx/SDL_syspower.c	Sat May 16 12:05:42 2015 -0300
     1.3 @@ -23,13 +23,13 @@
     1.4  #ifndef SDL_POWER_DISABLED
     1.5  #if SDL_POWER_MACOSX
     1.6  
     1.7 -#include <Carbon/Carbon.h>
     1.8 +#include <CoreFoundation/CoreFoundation.h>
     1.9  #include <IOKit/ps/IOPowerSources.h>
    1.10  #include <IOKit/ps/IOPSKeys.h>
    1.11  
    1.12  #include "SDL_power.h"
    1.13  
    1.14 -/* Carbon is so verbose... */
    1.15 +/* CoreFoundation is so verbose... */
    1.16  #define STRMATCH(a,b) (CFStringCompare(a, b, 0) == kCFCompareEqualTo)
    1.17  #define GETVAL(k,v) \
    1.18      CFDictionaryGetValueIfPresent(dict, CFSTR(k), (const void **) v)