diff liboctave/lo-sysdep.cc @ 11735:24bdee332170 release-3-0-x

lo-sysdep.cc: include windows.h if windows and not cygwin
author John W. Eaton <jwe@octave.org>
date Thu, 03 Apr 2008 22:23:22 -0400
parents a1dbe9d80eee
children bc5c6999c600 72830070a17b
line wrap: on
line diff
--- a/liboctave/lo-sysdep.cc	Thu Apr 03 22:20:04 2008 -0400
+++ b/liboctave/lo-sysdep.cc	Thu Apr 03 22:23:22 2008 -0400
@@ -39,6 +39,10 @@
 #include <fcntl.h>
 #endif
 
+#if defined (__WIN32__) && ! defined (__CYGWIN__)
+#include <windows.h>
+#endif
+
 #include "file-ops.h"
 #include "lo-error.h"
 #include "pathlen.h"
@@ -174,8 +178,6 @@
 // complete implementations (do the functions below work for network
 // paths, for example)?  We can probably get along without rewinddir.
 
-#include <windows.h>
-
 struct __DIR
 {
   HANDLE hnd;