# HG changeset patch # User John W. Eaton # Date 1207275767 14400 # Node ID eacf87a24f552d8678b63c0413541d5e09202f51 # Parent 79462337c892d7bf1082bab4fc429142edf98d99 lo-sysdep.cc: include windows.h if windows and not cygwin diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-04-03 John W. Eaton + + * lo-sysdep.cc [__WIN32__ && ! __CYGWIN__]: Include windows.h. + 2008-03-27 Jaroslav Hajek * oct-lookup.h: New file. diff --git a/liboctave/lo-sysdep.cc b/liboctave/lo-sysdep.cc --- a/liboctave/lo-sysdep.cc +++ b/liboctave/lo-sysdep.cc @@ -39,6 +39,10 @@ #include #endif +#if defined (__WIN32__) && ! defined (__CYGWIN__) +#include +#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 - struct __DIR { HANDLE hnd;