diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2013-10-06 13:43:45 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-06 10:42:32 -0700 |
commit | 4d0b6e698ae8d9a2f6f625203223e30604c7aaf9 (patch) | |
tree | c63544e80c368ad8779bb1ca54b15ebd22a094eb /macos.c | |
parent | 4d3e74a23676a33ffdc04a4a8b83c05f63b2693c (diff) | |
download | subsurface-4d0b6e698ae8d9a2f6f625203223e30604c7aaf9.tar.gz |
Changes to make the glib-removal-hack branch build on MacOSX
Tested with the Homebrew packaging system
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'macos.c')
-rw-r--r-- | macos.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,7 +42,7 @@ void subsurface_set_conf(const char *name, const char *value) CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES); } -void subsurface_set_conf_bool(const char *name, int value) +void subsurface_set_conf_bool(const char *name, bool value) { CFPreferencesSetAppValue(CFSTR_VAR(name), value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES); @@ -252,12 +252,12 @@ void subsurface_command_line_exit(int *argc, char ***argv) /* this is a no-op */ } -int subsurface_os_feature_available(os_feature_t f) +bool subsurface_os_feature_available(os_feature_t f) { return TRUE; } -int subsurface_launch_for_uri(const char* uri) +bool subsurface_launch_for_uri(const char* uri) { CFURLRef urlref = CFURLCreateWithBytes(NULL, uri, strlen(uri), kCFStringEncodingMacRoman, NULL); OSStatus status = LSOpenCFURLRef(urlref, NULL); |