aboutsummaryrefslogtreecommitdiffstats
path: root/cups/ppd-emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'cups/ppd-emit.c')
-rw-r--r--cups/ppd-emit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cups/ppd-emit.c b/cups/ppd-emit.c
index 36e5bcaf..4b153aca 100644
--- a/cups/ppd-emit.c
+++ b/cups/ppd-emit.c
@@ -21,11 +21,11 @@
#include "cups-private.h"
#include "ppd.h"
-#if defined(WIN32) || defined(__EMX__)
+#if defined(_WIN32) || defined(__EMX__)
# include <io.h>
#else
# include <unistd.h>
-#endif /* WIN32 || __EMX__ */
+#endif /* _WIN32 || __EMX__ */
/*
@@ -328,11 +328,11 @@ ppdEmitFd(ppd_file_t *ppd, /* I - PPD file record */
while (buflength > 0)
{
-#ifdef WIN32
+#ifdef _WIN32
if ((bytes = (ssize_t)write(fd, bufptr, (unsigned)buflength)) < 0)
#else
if ((bytes = write(fd, bufptr, buflength)) < 0)
-#endif /* WIN32 */
+#endif /* _WIN32 */
{
if (errno == EAGAIN || errno == EINTR)
continue;