浏览代码

Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowerInfo code.

Alex Szpakowski 10 年之前
父节点
当前提交
d57b973518
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/power/macosx/SDL_syspower.c

+ 2 - 2
src/power/macosx/SDL_syspower.c

@@ -23,13 +23,13 @@
 #ifndef SDL_POWER_DISABLED
 #if SDL_POWER_MACOSX
 
-#include <Carbon/Carbon.h>
+#include <CoreFoundation/CoreFoundation.h>
 #include <IOKit/ps/IOPowerSources.h>
 #include <IOKit/ps/IOPSKeys.h>
 
 #include "SDL_power.h"
 
-/* Carbon is so verbose... */
+/* CoreFoundation is so verbose... */
 #define STRMATCH(a,b) (CFStringCompare(a, b, 0) == kCFCompareEqualTo)
 #define GETVAL(k,v) \
     CFDictionaryGetValueIfPresent(dict, CFSTR(k), (const void **) v)