summaryrefslogtreecommitdiff
path: root/win32/wince
diff options
context:
space:
mode:
authorMike Hommey <glandium@debian.org>2007-04-17 20:40:00 +0200
committerMike Hommey <glandium@debian.org>2007-04-17 20:40:00 +0200
commit789259a1b6850d30acffbb62b11456b9ed7a8f59 (patch)
tree842f2f9042a4264898ec29078aa029640078c393 /win32/wince
parent968041a8b2ec86c39b5074024ce97d136ecd9a95 (diff)
downloadlibxml2-789259a1b6850d30acffbb62b11456b9ed7a8f59.tar.gz
Load /tmp/libxml2-2.6.28 intoupstream/2.6.28.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'win32/wince')
-rw-r--r--win32/wince/wincecompat.c8
-rw-r--r--win32/wince/wincecompat.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/win32/wince/wincecompat.c b/win32/wince/wincecompat.c
index bf70fcc..1d8df87 100644
--- a/win32/wince/wincecompat.c
+++ b/win32/wince/wincecompat.c
@@ -47,6 +47,14 @@ int close(int handle)
}
+char *getcwd( char *buffer, unsigned int size)
+{
+ /* Windows CE don't have the concept of a current directory
+ * so we just return NULL to indicate an error
+ */
+ return NULL;
+}
+
char *getenv( const char *varname )
{
return NULL;
diff --git a/win32/wince/wincecompat.h b/win32/wince/wincecompat.h
index 49468a3..aa0f3dc 100644
--- a/win32/wince/wincecompat.h
+++ b/win32/wince/wincecompat.h
@@ -12,6 +12,7 @@
#define __WINCECOMPAT_H__
#include <stdio.h>
+#include <winbase.h>
#define MAX_STRERROR 31
@@ -24,6 +25,8 @@
#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
@@ -33,6 +36,7 @@ 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);
/*