diff options
author | phintuka <phintuka> | 2007-03-27 02:38:44 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2007-03-27 02:38:44 +0000 |
commit | ed4e4eb4356821b9483b4b4e241bcdc0883ff495 (patch) | |
tree | a0e0cfc0e0f9e855d991c116f4f2882e2b626167 | |
parent | 659b1d588de6ea9ffae41ff3eb8d6b3f362f14ff (diff) | |
download | xineliboutput-ed4e4eb4356821b9483b4b4e241bcdc0883ff495.tar.gz xineliboutput-ed4e4eb4356821b9483b4b4e241bcdc0883ff495.tar.bz2 |
MAC OS X : in parameter is const
-rw-r--r-- | tools/iconv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/iconv.h b/tools/iconv.h index 872a7a8d..e4ab33e3 100644 --- a/tools/iconv.h +++ b/tools/iconv.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: iconv.h,v 1.1 2007-01-13 12:13:26 phintuka Exp $ + * $Id: iconv.h,v 1.2 2007-03-27 02:38:44 phintuka Exp $ * */ @@ -68,7 +68,11 @@ cString cIConv::Translate(const char *Text) const #ifdef USE_ICONV size_t inc = strlen(Text); size_t outc = inc<2048 ? 2048 : inc+1; +#ifdef __APPLE__ + const char *in = Text; +#else char *in = (char*)Text; +#endif char *buf = (char*)malloc(outc+1); char *out = buf; |