1cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky/* 7zTypes.h -- Basic types 2cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky2013-11-12 : Igor Pavlov : Public domain */ 3baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 4baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifndef __7Z_TYPES_H 5baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define __7Z_TYPES_H 6baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 7baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _WIN32 8cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky/* #include <windows.h> */ 9baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 10baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 11cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky#include <stddef.h> 12cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky 13baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifndef EXTERN_C_BEGIN 14baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef __cplusplus 15baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define EXTERN_C_BEGIN extern "C" { 16baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define EXTERN_C_END } 17baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 18baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define EXTERN_C_BEGIN 19baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define EXTERN_C_END 20baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 21baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 22baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 23baa3858d3f5d128a5c8466b700098109edcad5f2repo syncEXTERN_C_BEGIN 24baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 25baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_OK 0 26baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 27baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_DATA 1 28baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_MEM 2 29baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_CRC 3 30baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_UNSUPPORTED 4 31baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_PARAM 5 32baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_INPUT_EOF 6 33baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_OUTPUT_EOF 7 34baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_READ 8 35baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_WRITE 9 36baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_PROGRESS 10 37baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_FAIL 11 38baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_THREAD 12 39baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 40baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_ARCHIVE 16 41baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define SZ_ERROR_NO_ARCHIVE 17 42baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 43baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef int SRes; 44baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 45baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _WIN32 46cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky/* typedef DWORD WRes; */ 47cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbeckytypedef unsigned WRes; 48baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 49baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef int WRes; 50baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 51baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 52baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifndef RINOK 53baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define RINOK(x) { int __result__ = (x); if (__result__ != 0) return __result__; } 54baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 55baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 56baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned char Byte; 57baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef short Int16; 58baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned short UInt16; 59baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 60baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _LZMA_UINT32_IS_ULONG 61baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef long Int32; 62baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned long UInt32; 63baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 64baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef int Int32; 65baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned int UInt32; 66baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 67baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 68baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _SZ_NO_INT_64 69baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 70baa3858d3f5d128a5c8466b700098109edcad5f2repo sync/* define _SZ_NO_INT_64, if your compiler doesn't support 64-bit integers. 71baa3858d3f5d128a5c8466b700098109edcad5f2repo sync NOTES: Some code will work incorrectly in that case! */ 72baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 73baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef long Int64; 74baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned long UInt64; 75baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 76baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 77baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 78baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#if defined(_MSC_VER) || defined(__BORLANDC__) 79baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef __int64 Int64; 80baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned __int64 UInt64; 81baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define UINT64_CONST(n) n 82baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 83baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef long long int Int64; 84baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef unsigned long long int UInt64; 85baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define UINT64_CONST(n) n ## ULL 86baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 87baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 88baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 89baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 90baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _LZMA_NO_SYSTEM_SIZE_T 91baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef UInt32 SizeT; 92baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 93baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef size_t SizeT; 94baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 95baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 96baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef int Bool; 97baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define True 1 98baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define False 0 99baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 100baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 101baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _WIN32 102baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_STD_CALL __stdcall 103baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 104baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_STD_CALL 105baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 106baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 107baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _MSC_VER 108baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 109baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#if _MSC_VER >= 1300 110baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_NO_INLINE __declspec(noinline) 111baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 112baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_NO_INLINE 113baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 114baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 115baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_CDECL __cdecl 116baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_FAST_CALL __fastcall 117baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 118baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 119baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 120cd66d540cead3f8200b0c73bad9c276d67896c3dDavid Srbecky#define MY_NO_INLINE 121baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_CDECL 122baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define MY_FAST_CALL 123baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 124baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 125baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 126baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 127baa3858d3f5d128a5c8466b700098109edcad5f2repo sync/* The following interfaces use first parameter as pointer to structure */ 128baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 129baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 130baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 131baa3858d3f5d128a5c8466b700098109edcad5f2repo sync Byte (*Read)(void *p); /* reads one byte, returns 0 in case of EOF or error */ 132baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} IByteIn; 133baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 134baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 135baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 136baa3858d3f5d128a5c8466b700098109edcad5f2repo sync void (*Write)(void *p, Byte b); 137baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} IByteOut; 138baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 139baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 140baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 141baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Read)(void *p, void *buf, size_t *size); 142baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* if (input(*size) != 0 && output(*size) == 0) means end_of_stream. 143baa3858d3f5d128a5c8466b700098109edcad5f2repo sync (output(*size) < input(*size)) is allowed */ 144baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ISeqInStream; 145baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 146baa3858d3f5d128a5c8466b700098109edcad5f2repo sync/* it can return SZ_ERROR_INPUT_EOF */ 147baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size); 148baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType); 149baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf); 150baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 151baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 152baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 153baa3858d3f5d128a5c8466b700098109edcad5f2repo sync size_t (*Write)(void *p, const void *buf, size_t size); 154baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* Returns: result - the number of actually written bytes. 155baa3858d3f5d128a5c8466b700098109edcad5f2repo sync (result < size) means error */ 156baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ISeqOutStream; 157baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 158baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef enum 159baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 160baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SZ_SEEK_SET = 0, 161baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SZ_SEEK_CUR = 1, 162baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SZ_SEEK_END = 2 163baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ESzSeek; 164baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 165baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 166baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 167baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Read)(void *p, void *buf, size_t *size); /* same as ISeqInStream::Read */ 168baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin); 169baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ISeekInStream; 170baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 171baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 172baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 173baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Look)(void *p, const void **buf, size_t *size); 174baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* if (input(*size) != 0 && output(*size) == 0) means end_of_stream. 175baa3858d3f5d128a5c8466b700098109edcad5f2repo sync (output(*size) > input(*size)) is not allowed 176baa3858d3f5d128a5c8466b700098109edcad5f2repo sync (output(*size) < input(*size)) is allowed */ 177baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Skip)(void *p, size_t offset); 178baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* offset must be <= output(*size) of Look */ 179baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 180baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Read)(void *p, void *buf, size_t *size); 181baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* reads directly (without buffer). It's same as ISeqInStream::Read */ 182baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Seek)(void *p, Int64 *pos, ESzSeek origin); 183baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ILookInStream; 184baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 185baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size); 186baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset); 187baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 188baa3858d3f5d128a5c8466b700098109edcad5f2repo sync/* reads via ILookInStream::Read */ 189baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType); 190baa3858d3f5d128a5c8466b700098109edcad5f2repo syncSRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size); 191baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 192baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define LookToRead_BUF_SIZE (1 << 14) 193baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 194baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 195baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 196baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ILookInStream s; 197baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ISeekInStream *realStream; 198baa3858d3f5d128a5c8466b700098109edcad5f2repo sync size_t pos; 199baa3858d3f5d128a5c8466b700098109edcad5f2repo sync size_t size; 200baa3858d3f5d128a5c8466b700098109edcad5f2repo sync Byte buf[LookToRead_BUF_SIZE]; 201baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} CLookToRead; 202baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 203baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid LookToRead_CreateVTable(CLookToRead *p, int lookahead); 204baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid LookToRead_Init(CLookToRead *p); 205baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 206baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 207baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 208baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ISeqInStream s; 209baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ILookInStream *realStream; 210baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} CSecToLook; 211baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 212baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid SecToLook_CreateVTable(CSecToLook *p); 213baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 214baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 215baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 216baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ISeqInStream s; 217baa3858d3f5d128a5c8466b700098109edcad5f2repo sync ILookInStream *realStream; 218baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} CSecToRead; 219baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 220baa3858d3f5d128a5c8466b700098109edcad5f2repo syncvoid SecToRead_CreateVTable(CSecToRead *p); 221baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 222baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 223baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 224baa3858d3f5d128a5c8466b700098109edcad5f2repo sync SRes (*Progress)(void *p, UInt64 inSize, UInt64 outSize); 225baa3858d3f5d128a5c8466b700098109edcad5f2repo sync /* Returns: result. (result != SZ_OK) means break. 226baa3858d3f5d128a5c8466b700098109edcad5f2repo sync Value (UInt64)(Int64)-1 for size means unknown value. */ 227baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ICompressProgress; 228baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 229baa3858d3f5d128a5c8466b700098109edcad5f2repo synctypedef struct 230baa3858d3f5d128a5c8466b700098109edcad5f2repo sync{ 231baa3858d3f5d128a5c8466b700098109edcad5f2repo sync void *(*Alloc)(void *p, size_t size); 232baa3858d3f5d128a5c8466b700098109edcad5f2repo sync void (*Free)(void *p, void *address); /* address can be 0 */ 233baa3858d3f5d128a5c8466b700098109edcad5f2repo sync} ISzAlloc; 234baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 235baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define IAlloc_Alloc(p, size) (p)->Alloc((p), size) 236baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define IAlloc_Free(p, a) (p)->Free((p), a) 237baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 238baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#ifdef _WIN32 239baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 240baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define CHAR_PATH_SEPARATOR '\\' 241baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define WCHAR_PATH_SEPARATOR L'\\' 242baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define STRING_PATH_SEPARATOR "\\" 243baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define WSTRING_PATH_SEPARATOR L"\\" 244baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 245baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#else 246baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 247baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define CHAR_PATH_SEPARATOR '/' 248baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define WCHAR_PATH_SEPARATOR L'/' 249baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define STRING_PATH_SEPARATOR "/" 250baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#define WSTRING_PATH_SEPARATOR L"/" 251baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 252baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 253baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 254baa3858d3f5d128a5c8466b700098109edcad5f2repo syncEXTERN_C_END 255baa3858d3f5d128a5c8466b700098109edcad5f2repo sync 256baa3858d3f5d128a5c8466b700098109edcad5f2repo sync#endif 257