summaryrefslogtreecommitdiffstats
path: root/src/portable.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-03-04 21:11:18 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2009-03-04 21:11:18 (GMT)
commitaa9c531961aea00c8d9c139de3c48844f11dc9f1 (patch)
treeade91348b3d7d8806a09659790655b697c1f4eea /src/portable.cpp
parent27b5dd5b526154944bb1997fb7a592343d124595 (diff)
downloadDoxygen-aa9c531961aea00c8d9c139de3c48844f11dc9f1.zip
Doxygen-aa9c531961aea00c8d9c139de3c48844f11dc9f1.tar.gz
Doxygen-aa9c531961aea00c8d9c139de3c48844f11dc9f1.tar.bz2
Release-1.5.8-20090304
Diffstat (limited to 'src/portable.cpp')
-rw-r--r--src/portable.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/portable.cpp b/src/portable.cpp
index 03d5366..0107f2c 100644
--- a/src/portable.cpp
+++ b/src/portable.cpp
@@ -14,7 +14,6 @@ extern char **environ;
#include <qglobal.h>
#include <qdatetime.h>
-#include <iconv.h>
#if defined(_MSC_VER) || defined(__BORLANDC__)
#define popen _popen
@@ -369,31 +368,3 @@ int portable_pclose(FILE *stream)
return pclose(stream);
}
-void * portable_iconv_open(const char* tocode, const char* fromcode)
-{
- return iconv_open(tocode,fromcode);
-}
-
-size_t portable_iconv (void *cd, const char** inbuf, size_t *inbytesleft,
- char** outbuf, size_t *outbytesleft)
-{
-// libiconv is a mess. For some platforms/version the prototype of inbuf is
-// "const char **", for others it is "char **". C++ requires the proper cast to
-// avoid a compile error, that is were the CASTNEEDED is for.
-#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109) && \
- !((defined(_OS_MAC_) || defined(Q_OS_MACX) )&& (_LIBICONV_VERSION==0x010B))) \
- || defined(_OS_SOLARIS_) \
- || defined(_OS_NETBSD_) \
- )
-#define CASTNEEDED(x) (x)
-#else
-#define CASTNEEDED(x) (char **)(x)
-#endif
- return iconv((iconv_t)cd,CASTNEEDED(inbuf),inbytesleft,outbuf,outbytesleft);
-}
-
-int portable_iconv_close (void *cd)
-{
- return iconv_close((iconv_t)cd);
-}
-