Commits

Anonymous committed 2a1f021

#59 Import Windows CE port.

Comments (0)

Files changed (4)

 	wish to build gd as a static library or by directly including
 	the gd sources in a project. */
 
-#ifndef WIN32
+#if !defined(WIN32) && !defined(_WIN32_WCE)
 #define NONDLL 1
 #endif /* WIN32 */
 
 #include "entities.h"
 
 /* 2.0.10: WIN32, not MSWIN32 */
-#ifndef WIN32
+#if !defined(WIN32) && !defined(_WIN32_WCE)
 #include <unistd.h>
-#else
+#elif defined(_WIN32_WCE)
+#include <wce_stdlib.h> /* getenv() */
+#include <wce_unistd.h> /* access() */
+#define getenv wceex_getenv
+#define access wceex_access
+#define strdup _strdup
+#else /* _WIN32_WCE */
 #include <io.h>
 #define R_OK 04			/* Needed in Windows */
 #endif
 #define GDHELPERS_H 1
 
 /* sys/types.h is needed for size_t on Sparc-SunOS-4.1 */
+#ifndef _WIN32_WCE
 #include <sys/types.h>
+#else
+#include <stdlib.h>
+#endif /* _WIN32_WCE */
 
 /* TBB: strtok_r is not universal; provide an implementation of it. */
 

src/windows/.cvsignore

 *.obj
 *.ilk
 *.res
+*.manifest
 distro