summaryrefslogtreecommitdiff
path: root/games/bzflag/patches/patch-ag
blob: 673573e06b8ef39b65c8e1d9022636d53e37a60d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ag,v 1.3 2005/03/16 12:41:51 rillig Exp $

tolower is a macro on NetBSD-1.6.2.

--- include/TextUtils.h.orig	Wed May 12 22:10:51 2004
+++ include/TextUtils.h	Tue Mar 15 23:59:22 2005
@@ -43,7 +43,7 @@ public:
 
   /** returns a string converted to lowercase
    */
-  inline static std::string tolower(const std::string& s)
+  inline static std::string bz_tolower(const std::string& s)
   {
     std::string trans = s;
 
@@ -55,7 +55,7 @@ public:
 
   /** returns a string converted to uppercase
    */
-  inline static std::string toupper(const std::string& s)
+  inline static std::string bz_toupper(const std::string& s)
   {
     std::string trans = s;
     std::transform (trans.begin(), trans.end(), // source