diff --git a/libraries.rb b/libraries.rb index a4d5e1f..3312471 100644 --- a/libraries.rb +++ b/libraries.rb @@ -17,7 +17,7 @@ line = gets files = [] while line if line =~ / => (\/.*) \(/ - if not BLACKLIST.include? $1 + if not BLACKLIST.any? {|library| $1.end_with? library } files << $1 end end diff --git a/src/oneshot.cpp b/src/oneshot.cpp index 02bbc9b..7be7ef0 100644 --- a/src/oneshot.cpp +++ b/src/oneshot.cpp @@ -485,12 +485,12 @@ bool Oneshot::msgbox(int type, const char *body, const char *title) { if (!title) title = ""; - #if defined OS_LINUX +#ifdef OS_LINUX linux_DialogData data = {type, body, title, 0}; gdk_threads_add_idle(linux_dialog, &data); gtk_main(); return data.result; - #endif +#else // SDL message box // Button data @@ -570,6 +570,7 @@ bool Oneshot::msgbox(int type, const char *body, const char *title) #endif return button ? true : false; +#endif // #ifdef OS_LINUX } std::string Oneshot::textinput(const char* prompt, int char_limit, const char* fontName) {