mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix Mac build
Just make the code compile on MacOS X Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6c0289daa0
commit
ac376ea379
1 changed files with 2 additions and 3 deletions
5
macos.c
5
macos.c
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue