diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-10 20:44:48 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-10 20:45:22 -0800 |
commit | ac376ea379b50bab3b172842d9ce2e67e3b03783 (patch) | |
tree | a6719d31c87dd4b23908a28991f894f477561e85 /macos.c | |
parent | 6c0289daa055fb13d5bff8de9da194d1205f908c (diff) | |
download | subsurface-ac376ea379b50bab3b172842d9ce2e67e3b03783.tar.gz |
Fix Mac build
Just make the code compile on MacOS X
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r-- | macos.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -31,12 +31,12 @@ void subsurface_unset_conf(char *name) 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); } -void subsurface_set_conf(char *name, int value) +void subsurface_set_conf_bool(char *name, int value) { CFPreferencesSetAppValue(CFSTR_VAR(name), value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES); @@ -55,7 +55,6 @@ const void *subsurface_get_conf(char *name) int subsurface_get_conf_bool(char *name) { Boolean boolpref, exists; - CFPropertyListRef strpref; boolpref = CFPreferencesGetAppBooleanValue(CFSTR_VAR(name), SUBSURFACE_PREFERENCES, &exists); if (!exists) |