summaryrefslogtreecommitdiff
path: root/ext/fdf
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-07-06 14:47:02 +0000
committerAndi Gutmans <andi@php.net>2000-07-06 14:47:02 +0000
commit3247b9a2075f9763bedf9a3f9e5c764c3e461663 (patch)
tree2d329a17353376ed30759ea9c8ec913b7b82b840 /ext/fdf
parent2b70aaf12d95dd640203b6141bf2e730dbfa705f (diff)
downloadphp-git-3247b9a2075f9763bedf9a3f9e5c764c3e461663.tar.gz
- Use #ifdef PHP_WIN32 to detect Windows
Diffstat (limited to 'ext/fdf')
-rw-r--r--ext/fdf/fdf.c6
-rw-r--r--ext/fdf/php_fdf.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index 9dc5883cce..08ee765497 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -54,7 +54,7 @@
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if WIN32|WINNT
+#ifdef PHP_WIN32
# include <io.h>
# include <fcntl.h>
#endif
@@ -115,7 +115,7 @@ PHP_MINIT_FUNCTION(fdf)
{
FDFErc err;
FDF_GLOBAL(le_fdf) = register_list_destructors(phpi_FDFClose, NULL);
-#ifdef WIN32
+#ifdef PHP_WIN32
return SUCCESS;
#endif
err = FDFInitialize();
@@ -136,7 +136,7 @@ PHP_MINFO_FUNCTION(fdf)
PHP_MSHUTDOWN_FUNCTION(fdf)
{
FDFErc err;
-#ifdef WIN32
+#ifdef PHP_WIN32
return SUCCESS;
#endif
err = FDFFinalize();
diff --git a/ext/fdf/php_fdf.h b/ext/fdf/php_fdf.h
index 093388846f..3d9d9b40b0 100644
--- a/ext/fdf/php_fdf.h
+++ b/ext/fdf/php_fdf.h
@@ -32,7 +32,7 @@
#define PHP_FDF_H
#if HAVE_FDFLIB
-#if WIN32|WINNT
+#ifdef PHP_WIN32
#else
#define UNIX_DEV
#endif