From 4d0b6e698ae8d9a2f6f625203223e30604c7aaf9 Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sun, 6 Oct 2013 13:43:45 +0200 Subject: Changes to make the glib-removal-hack branch build on MacOSX Tested with the Homebrew packaging system Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- macos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macos.c') diff --git a/macos.c b/macos.c index a3709cfb1..4f41970b6 100644 --- a/macos.c +++ b/macos.c @@ -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); -- cgit v1.2.3-70-g09d2