fixed message box on osx

This commit is contained in:
Joel de Vahl 2008-10-02 14:37:48 +00:00
parent cebda9790b
commit d5b1c93598
2 changed files with 6 additions and 4 deletions

View file

@ -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"

View file

@ -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)