From 35a201cc8ef0c3f5b2df88d2e528aabee1048348 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 30 Apr 2021 18:47:09 +0200 Subject: Initial/Final commit --- libxml2-2.9.10/win32/wince/wincecompat.h | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 libxml2-2.9.10/win32/wince/wincecompat.h (limited to 'libxml2-2.9.10/win32/wince/wincecompat.h') diff --git a/libxml2-2.9.10/win32/wince/wincecompat.h b/libxml2-2.9.10/win32/wince/wincecompat.h new file mode 100644 index 0000000..5154179 --- /dev/null +++ b/libxml2-2.9.10/win32/wince/wincecompat.h @@ -0,0 +1,50 @@ +/* + * wincecompat.h : wince compatibility header file + * + * See Copyright for the status of this software. + * + * javier@tiresiassoft.com + * + * 17 Sep 2002 created + */ + +#ifndef __WINCECOMPAT_H__ +#define __WINCECOMPAT_H__ + +#include +#include + +#define MAX_STRERROR 31 + +#define O_RDONLY 0x0000 /* open for reading only */ +#define O_WRONLY 0x0001 /* open for writing only */ +#define O_RDWR 0x0002 /* open for reading and writing */ +#define O_APPEND 0x0008 /* writes done at eof */ + +#define O_CREAT 0x0100 /* create and open file */ +#define O_TRUNC 0x0200 /* open and truncate */ +#define O_EXCL 0x0400 /* open only if file doesn't already exist */ + +#define BUFSIZ 4096 + +extern int errno; +/* + Prototypes +*/ +int read(int handle, char *buffer, unsigned int len); +int write(int handle, const char *buffer, unsigned int len); +int open(const char *filename,int oflag, ...); +int close(int handle); +char *getenv( const char *varname ); +char *getcwd( char *buffer, unsigned int size); +char *strerror(int errnum); + +/* + Macro'ed nonexistent function names + +*/ +#define snprintf _snprintf +#define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a) +#define perror(_t) MessageBox(NULL, _T("_t"), _T("Error/Warning"), MB_OK) + +#endif -- cgit v1.2.3