Skip to content
Permalink
Browse files

Mac: Use CoreFoundation headers instead of Carbon headers, in GetPowe…

…rInfo code.
  • Loading branch information
slime73 committed May 16, 2015
1 parent 1c6ea0f commit d57b97351838f4808a205b8db161f040374778a9
Showing with 2 additions and 2 deletions.
  1. +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)

0 comments on commit d57b973

Please sign in to comment.