Work on compiling on mingw

This commit is contained in:
Lymia Aluysia
2017-01-18 04:56:16 -06:00
parent cc76e26495
commit 8c960f0c34
8 changed files with 47 additions and 42 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ int string_format_args(const String& str) {
*/
InputStreamP load_resource_text(const String& name);
InputStreamP load_resource_text(const String& name) {
#if defined(__WXMSW__)
#if defined(__WXMSW__) && !defined(__GNUC__)
HRSRC hResource = ::FindResource(wxGetInstance(), name, _("TEXT"));
if ( hResource == 0 ) throw InternalError(String::Format(_("Resource not found: %s"), name));
HGLOBAL hData = ::LoadResource(wxGetInstance(), hResource);