mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
more
This commit is contained in:
@@ -29,7 +29,11 @@
|
||||
# define ICONV_BIG_ENDIAN BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
#include <iconv.h>
|
||||
#if defined(_MSC_VER)
|
||||
/* no */
|
||||
#else
|
||||
# define ENABLE_ICONV 1
|
||||
#endif
|
||||
|
||||
class _Iconv_CommonBase {
|
||||
public:
|
||||
@@ -217,6 +221,9 @@ protected:
|
||||
friend _Iconv<srcT,dstT>;
|
||||
};
|
||||
|
||||
#if defined(ENABLE_ICONV)
|
||||
# include <iconv.h>
|
||||
|
||||
template <typename srcT,typename dstT> class _Iconv : public _IconvBase<srcT,dstT> {
|
||||
protected:
|
||||
using pclass = _IconvBase<srcT,dstT>;
|
||||
@@ -322,3 +329,5 @@ typedef _Iconv<char,char> Iconv;
|
||||
typedef _Iconv<char,wchar_t> IconvToW;
|
||||
typedef _Iconv<wchar_t,char> IconvFromW;
|
||||
|
||||
#endif // ENABLE_ICONV
|
||||
|
||||
|
Reference in New Issue
Block a user