1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

- Use #ifdef PHP_WIN32 to detect Windows

This commit is contained in:
Andi Gutmans
2000-07-06 14:47:02 +00:00
parent 2b70aaf12d
commit 3247b9a207
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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();
+1 -1
View File
@@ -32,7 +32,7 @@
#define PHP_FDF_H
#if HAVE_FDFLIB
#if WIN32|WINNT
#ifdef PHP_WIN32
#else
#define UNIX_DEV
#endif