Harmonize WIN32, and update bootstrap
[awesomized/libmemcached] / clients / utilities.cc
index 5f5958e2a193dbe8e15fe161e2a32c10067d1e38..158890515ef43840bc9d49409e386bb0706ed980 100644 (file)
@@ -184,12 +184,12 @@ void process_hash_option(memcached_st *memc, char *opt_hash)
 void initialize_sockets(void)
 {
   /* Define the function for all platforms to avoid #ifdefs in each program */
-#if defined(WIN32) && WIN32
+#if defined(_WIN32)
   WSADATA wsaData;
   if (WSAStartup(MAKEWORD(2,0), &wsaData) != 0)
   {
     fprintf(stderr, "Socket Initialization Error. Program aborted\n");
     exit(EXIT_FAILURE);
   }
-#endif
+#endif // #if defined(_WIN32)
 }