1. NaviServer
  2. NaviServer Project
  3. naviserver

Commits

Gustaf Neumann  committed 8d7e8b7

use _WIN32 instead of WIN32 throughout the code

  • Participants
  • Parent commits 7085cab
  • Branches default

Comments (0)

Files changed (5)

File nsd/binder.c

View file
  • Ignore whitespace
 Ns_SockBinderListen(int type, char *address, int port, int options)
 {
     SOCKET        sock = -1;
-#ifndef WIN32
+#ifndef _WIN32
     int           n, err;
     char          data[64];
     struct msghdr msg;

File nsd/dns.c

View file
  • Ignore whitespace
  * W2000 has no getaddrinfo, requires special headers for inline functions
  */
 
-#ifdef WIN32
+#ifdef _WIN32
 #  include <Ws2tcpip.h>
 /*#  include <Wspiapi.h>*/
 #endif

File nsd/index.c

View file
  • Ignore whitespace
         (int (*) (const void *, const void *)) CmpKeyWithInt);
 }
 
-#ifdef WIN32
+#ifdef _WIN32
 #define bsearch(a,b,c,d,e) NsBsearch(a,b,c,d,e)
 
 /*

File nsd/sockfile.c

View file
  • Ignore whitespace
  *
  *----------------------------------------------------------------------
  */
-#ifdef WIN32
+#ifdef _WIN32
 #include <io.h>
 #include <stdio.h>
-	 
+
 int pread(unsigned int fd, char *buf, size_t count, off_t offset)
 {
     OVERLAPPED overlapped = { 0 };

File nsperm/nsperm.c

View file
  • Ignore whitespace
  *
  *----------------------------------------------------------------------
  */
-#ifdef WIN32
+#ifdef _WIN32
 #include <winsock.h>
 
 int inet_aton(const char *addrString, struct in_addr *addr) {