Fix Mac build

Just make the code compile on MacOS X

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-01-10 20:44:48 -08:00
parent 6c0289daa0
commit ac376ea379

View file

@ -31,12 +31,12 @@ void subsurface_unset_conf(char *name)
CFPreferencesSetAppValue(CFSTR_VAR(name), NULL, SUBSURFACE_PREFERENCES); CFPreferencesSetAppValue(CFSTR_VAR(name), NULL, SUBSURFACE_PREFERENCES);
} }
void subsurface_set_conf(char *name, const void *value) void subsurface_set_conf(char *name, const char *value)
{ {
CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES); CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES);
} }
void subsurface_set_conf(char *name, int value) void subsurface_set_conf_bool(char *name, int value)
{ {
CFPreferencesSetAppValue(CFSTR_VAR(name), CFPreferencesSetAppValue(CFSTR_VAR(name),
value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES); value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES);
@ -55,7 +55,6 @@ const void *subsurface_get_conf(char *name)
int subsurface_get_conf_bool(char *name) int subsurface_get_conf_bool(char *name)
{ {
Boolean boolpref, exists; Boolean boolpref, exists;
CFPropertyListRef strpref;
boolpref = CFPreferencesGetAppBooleanValue(CFSTR_VAR(name), SUBSURFACE_PREFERENCES, &exists); boolpref = CFPreferencesGetAppBooleanValue(CFSTR_VAR(name), SUBSURFACE_PREFERENCES, &exists);
if (!exists) if (!exists)