Author: mturk
Date: Wed Mar 22 23:53:24 2006
New Revision: 388090

URL: http://svn.apache.org/viewcvs?rev=388090&view=rev
Log:
Fix compile time warning if _WIN32_WINNT is defined
in command line.

Modified:
    tomcat/connectors/trunk/jni/native/os/win32/ntpipe.c
    tomcat/connectors/trunk/jni/native/os/win32/registry.c
    tomcat/connectors/trunk/jni/native/os/win32/system.c

Modified: tomcat/connectors/trunk/jni/native/os/win32/ntpipe.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/os/win32/ntpipe.c?rev=388090&r1=388089&r2=388090&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/os/win32/ntpipe.c (original)
+++ tomcat/connectors/trunk/jni/native/os/win32/ntpipe.c Wed Mar 22 23:53:24 
2006
@@ -20,7 +20,9 @@
  */
 
 
+#ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0500
+#endif
 #define STRICT
 #include <windows.h>
 #include <winsock.h>
@@ -121,7 +123,7 @@
         break;
         default:
             rv = APR_EINVAL;
-        break; 
+        break;
     }
     return rv;
 }
@@ -140,7 +142,7 @@
         break;
         default:
             rv = APR_EINVAL;
-        break; 
+        break;
     }
     return rv;
 }

Modified: tomcat/connectors/trunk/jni/native/os/win32/registry.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/os/win32/registry.c?rev=388090&r1=388089&r2=388090&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/os/win32/registry.c (original)
+++ tomcat/connectors/trunk/jni/native/os/win32/registry.c Wed Mar 22 23:53:24 
2006
@@ -19,7 +19,9 @@
  * @version $Revision$, $Date$
  */
 
+#ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0500
+#endif
 #include <windows.h>
 #include <shlwapi.h>
 

Modified: tomcat/connectors/trunk/jni/native/os/win32/system.c
URL: 
http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jni/native/os/win32/system.c?rev=388090&r1=388089&r2=388090&view=diff
==============================================================================
--- tomcat/connectors/trunk/jni/native/os/win32/system.c (original)
+++ tomcat/connectors/trunk/jni/native/os/win32/system.c Wed Mar 22 23:53:24 
2006
@@ -19,7 +19,9 @@
  * @version $Revision$, $Date$
  */
 
+#ifndef _WIN32_WINNT
 #define _WIN32_WINNT 0x0500
+#endif
 #include <windows.h>
 #include <winsock.h>
 #include "apr.h"



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to