diff options
| -rw-r--r-- | default.bam | 2 | ||||
| -rw-r--r-- | src/base/system.c | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/default.bam b/default.bam index fb3b81a5..a2bbba0e 100644 --- a/default.bam +++ b/default.bam @@ -143,6 +143,8 @@ function build(settings) if platform == "macosx" then glfw_platform = "macosx" pa_platform = "mac_osx" + settings.linker.frameworks:add("Carbon") + settings.linker.frameworks:add("AppKit") else glfw_platform = "x11" pa_platform = "unix" diff --git a/src/base/system.c b/src/base/system.c index 5fb48e12..02bbed7f 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -1134,10 +1134,10 @@ void gui_messagebox(const char *title, const char *message) /* END HACK */ CreateStandardAlert(kAlertStopAlert, - CFSTR(title), - CFSTR(message), - NULL, - &theItem); + CFStringCreateWithCString(NULL, title, kCFStringEncodingASCII), + CFStringCreateWithCString(NULL, message, kCFStringEncodingASCII), + NULL, + &theItem); RunStandardAlert(theItem, NULL, &itemIndex); #elif defined(CONF_FAMILY_UNIX) |