Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/wince/wcecfg.h view on Meta::CPAN
#if defined(_UNICODE) && !defined(UNICODE)
#define UNICODE
#endif
#if defined(UNICODE) && !defined(_UNICODE)
#define _UNICODE
#endif
#if defined(_DEBUG) && !defined(DEBUG)
#define DEBUG
#endif
#if defined(DEBUG) && !defined(_DEBUG)
#define _DEBUG
#endif
#if defined(_NDEBUG) && !defined(NDEBUG)
#define NDEBUG
#endif
#if defined(NDEBUG) && !defined(_NDEBUG)
#define _NDEBUG
#endif
//******************************************************************************
//***** Common Info-ZIP UnZip feature/configuration flags
//******************************************************************************
// Windows CE environment allows support for UTC time stamps
#ifndef USE_EF_UT_TIME
#define USE_EF_UT_TIME
#endif
// NTFS extended attributes support is not available on Windows CE
#ifndef NO_NTSD_EAS
#define NO_NTSD_EAS
#endif
#ifdef NTSD_EAS
#undef NTSD_EAS
#endif
#ifdef _WIN32_WCE
// Windows CE does not provide the rename() function needed for UNIXBACKUP
# ifndef NO_UNIXBACKUP
# define NO_UNIXBACKUP
# endif
# ifdef UNIXBACKUP
# undef UNIXBACKUP
# endif
#endif
#if (!defined(NO_UNICODE_SUPPORT) && !defined(UNICODE_SUPPORT))
#define UNICODE_SUPPORT
#endif
#if (defined(UNICODE_SUPPORT) && !defined(UNICODE_WCHAR))
#define UNICODE_WCHAR /* wchar_t is UTF-16 encoded on WinCE */
#endif
#ifdef UTF8_MAYBE_NATIVE
#undef UTF8_MAYBE_NATIVE /* UTF-8 cannot be system charset on WinCE */
#endif
#ifdef POCKET_UNZIP
// The PUnZip GUI interface does not make use of ZipInfo style archive
// listings.
// For the command-line tool, it may be considered to disable ZipInfo, too,
// to save memory and resources.
# ifndef NO_ZIPINFO
# define NO_ZIPINFO
# endif
#endif
#ifndef POCKET_UNZIP
// CE does not support exception handling model
# define NO_EXCEPT_SIGNALS
# define MAIN main_stub
#endif
//******************************************************************************
//***** Global defines, constants, and macros
//******************************************************************************
#if (defined(_MSC_VER) && !defined(MSC))
#define MSC
#endif
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
// WinCE uses ISO 8859-1 as codepage for 8-bit chars
#define CRTL_CP_IS_ISO
// The functionality of ISO <--> OEM conversion IS needed on WinCE, too!!
// (Otherwise, extended ASCII filenames and passwords in archives coming
// from other platforms may not be handled properly.)
// Since WinCE does not supply ISO <--> OEM conversion, we try to fall
// back to the hardcoded tables in the generic UnZip code.
#define ASCII2OEM(c) (((c) & 0x80) ? iso2oem[(c) & 0x7f] : (c))
#if !defined(IZ_ISO2OEM_ARRAY)
# define IZ_ISO2OEM_ARRAY
#endif
#if !defined(CRYP_USES_ISO2OEM)
# define CRYP_USES_ISO2OEM
#endif
#define OEM_TO_INTERN(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
#define INTERN_TO_ISO(src, dst) {if ((src) != (dst)) strcpy((dst), (src));}
#define INTERN_TO_OEM(src, dst) {register uch c;\
register uch *dstp = (uch *)(dst), *srcp = (uch *)(src);\
do {\
c = (uch)foreign(*srcp++);\
*dstp++ = (uch)ASCII2OEM(c);\
} while (c != '\0');}
#if defined(UNICODE)
# define MBSTOTSTR mbstowcs
# define TSTRTOMBS wcstombs
#else
# define MBSTOTSTR strncpy
( run in 1.736 second using v1.01-cache-2.11-cpan-364913b4093 )