cvs: gd /libgd gd.h gdft.c gdhelpers.h /libgd/windows .cvsignore
[email protected] ("Mateusz Loskot")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvsmloskot1177905311@cvsserver> |
mloskot Mon Apr 30 03:55:11 2007 UTC
Modified files:
/gd/libgd gd.h gdft.c gdhelpers.h
/gd/libgd/windows .cvsignore
Log:
#59 Import Windows CE port.
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.h?r1=1.35&r2=1.36&diff_format=u
Index: gd/libgd/gd.h
diff -u gd/libgd/gd.h:1.35 gd/libgd/gd.h:1.36
--- gd/libgd/gd.h:1.35 Wed Jan 31 23:31:38 2007
+++ gd/libgd/gd.h Mon Apr 30 03:55:11 2007
@@ -26,7 +26,7 @@
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 */
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.32&r2=1.33&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.32 gd/libgd/gdft.c:1.33
--- gd/libgd/gdft.c:1.32 Mon Feb 26 19:59:44 2007
+++ gd/libgd/gdft.c Mon Apr 30 03:55:11 2007
@@ -18,9 +18,15 @@
#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
http://cvs.php.net/viewvc.cgi/gd/libgd/gdhelpers.h?r1=1.7&r2=1.8&diff_format=u
Index: gd/libgd/gdhelpers.h
diff -u gd/libgd/gdhelpers.h:1.7 gd/libgd/gdhelpers.h:1.8
--- gd/libgd/gdhelpers.h:1.7 Wed Apr 5 15:54:20 2006
+++ gd/libgd/gdhelpers.h Mon Apr 30 03:55:11 2007
@@ -6,7 +6,11 @@
#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. */
http://cvs.php.net/viewvc.cgi/gd/libgd/windows/.cvsignore?r1=1.3&r2=1.4&diff_format=u
Index: gd/libgd/windows/.cvsignore
diff -u gd/libgd/windows/.cvsignore:1.3 gd/libgd/windows/.cvsignore:1.4
--- gd/libgd/windows/.cvsignore:1.3 Wed May 17 15:53:11 2006
+++ gd/libgd/windows/.cvsignore Mon Apr 30 03:55:11 2007
@@ -5,4 +5,5 @@
*.obj
*.ilk
*.res
+*.manifest
distro