Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#10139) use ICONV_CONST
Home

[Freeciv-Dev] (PR#10139) use ICONV_CONST

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10139) use ICONV_CONST
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 15 Sep 2004 20:15:21 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10139 >

When compiling on win32 I get a compiler warning in fciconv.  This is 
solved by using the ICONV_CONST macro (declared by iconv.m4).

jason

Index: utility/fciconv.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/fciconv.c,v
retrieving revision 1.4
diff -u -r1.4 fciconv.c
--- utility/fciconv.c   12 Sep 2004 01:31:48 -0000      1.4
+++ utility/fciconv.c   16 Sep 2004 03:14:23 -0000
@@ -211,7 +211,7 @@
      * in between. */
     iconv(cd, NULL, NULL, NULL, NULL);
 
-    res = iconv(cd, (char**)&mytext, &flen, &myresult, &tlen);
+    res = iconv(cd, (ICONV_CONST char **)&mytext, &flen, &myresult, &tlen);
     if (res == (size_t) (-1)) {
       if (errno != E2BIG) {
        /* Invalid input. */

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10139) use ICONV_CONST, Jason Short <=