Mercurial > hg > octave-nkf
changeset 7695:eacf87a24f55
lo-sysdep.cc: include windows.h if windows and not cygwin
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 Apr 2008 22:22:47 -0400 |
parents | 79462337c892 |
children | 0a362fa8f3c8 |
files | liboctave/ChangeLog liboctave/lo-sysdep.cc |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-04-03 John W. Eaton <jwe@octave.org> + + * lo-sysdep.cc [__WIN32__ && ! __CYGWIN__]: Include windows.h. + 2008-03-27 Jaroslav Hajek <highegg@gmail.com> * oct-lookup.h: New file.
--- a/liboctave/lo-sysdep.cc +++ b/liboctave/lo-sysdep.cc @@ -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;