blob: add049099ca781b1a9cc6fcdabb4a9236d7c9428 [file] [log] [blame]
Igor Zlatkovic4320d872002-09-29 17:56:43 +00001/*
2 * wincecompat.h : wince compatiblity header file
3 *
4 * See Copyright for the status of this software.
5 *
6 * javier@tiresiassoft.com
7 *
8 * 17 Sep 2002 created
9 */
10
11#ifndef __WINCECOMPAT_H__
12#define __WINCECOMPAT_H__
13
14#include <stdio.h>
15
16#define MAX_STRERROR 31
17
18#define O_RDONLY 0x0000 /* open for reading only */
19#define O_WRONLY 0x0001 /* open for writing only */
20#define O_RDWR 0x0002 /* open for reading and writing */
21#define O_APPEND 0x0008 /* writes done at eof */
22
23#define O_CREAT 0x0100 /* create and open file */
24#define O_TRUNC 0x0200 /* open and truncate */
25#define O_EXCL 0x0400 /* open only if file doesn't already exist */
26
27extern int errno;
28/*
29 Prototypes
30*/
31int read(int handle, char *buffer, unsigned int len);
32int write(int handle, const char *buffer, unsigned int len);
33int open(const char *filename,int oflag, ...);
34int close(int handle);
35char *getenv( const char *varname );
36char *strerror(int errnum);
37
38#define perror(_t) MessageBox(NULL, _T("_t"), _T("Error/Warning"), MB_OK)
39
40#endif