]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/ppd-emit.c
Migrate Windows conditional code to _WIN32 define.
[thirdparty/cups.git] / cups / ppd-emit.c
index ab3ab244d801d63d6e59f5eb75559f474b68ea25..d2b58520c258746665eb684a8508413f6b64cccd 100644 (file)
 
 #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__ */
 
 
 /*
@@ -323,11 +323,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;