CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jon Daniel <[EMAIL PROTECTED]>  05/07/24 20:46:43

Modified files:
        src/serialization: string_utils.cpp 

Log message:
        Added check for OpenBSD which doesn't seem to have a towupper/towlower 
implementation

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/serialization/string_utils.cpp.diff?tr1=1.23&tr2=1.24&r1=text&r2=text

Patches:
Index: wesnoth/src/serialization/string_utils.cpp
diff -u wesnoth/src/serialization/string_utils.cpp:1.23 
wesnoth/src/serialization/string_utils.cpp:1.24
--- wesnoth/src/serialization/string_utils.cpp:1.23     Sat Jul  2 21:37:20 2005
+++ wesnoth/src/serialization/string_utils.cpp  Sun Jul 24 20:46:43 2005
@@ -1,4 +1,4 @@
-/* $Id: string_utils.cpp,v 1.23 2005/07/02 21:37:20 ott Exp $ */
+/* $Id: string_utils.cpp,v 1.24 2005/07/24 20:46:43 j_daniel Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Copyright (C) 2005 by Guillaume Melquiond <[EMAIL PROTECTED]>
@@ -603,7 +603,7 @@
                std::string res;
 
                for(;itor != utf8_iterator::end(s); ++itor) {
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__OpenBSD__)
                        // FIXME: Should we support towupper on recent OSX 
platforms?
                        wchar_t uchar = *itor;
                        if(uchar >= 0 && uchar < 0x100)


Reply via email to