Mercurial > hg > octave-lyh
comparison liboctave/lo-sysdep.cc @ 10346:65d5776379c3
Reduce the amount of stuff included by windows.h and avoid min/max being #define-d
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 21 Feb 2010 18:04:59 +0000 |
parents | 07ebe522dac2 |
children | 479cc8a0a846 |
comparison
equal
deleted
inserted
replaced
10345:33b012d39dce | 10346:65d5776379c3 |
---|---|
32 #include <unistd.h> | 32 #include <unistd.h> |
33 | 33 |
34 #include <fcntl.h> | 34 #include <fcntl.h> |
35 | 35 |
36 #if defined (__WIN32__) && ! defined (__CYGWIN__) | 36 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
37 #define WIN32_LEAN_AND_MEAN | |
37 #include <windows.h> | 38 #include <windows.h> |
38 #ifdef max | |
39 # undef min | |
40 # undef max | |
41 #endif | |
42 #endif | 39 #endif |
43 | 40 |
44 #include "file-ops.h" | 41 #include "file-ops.h" |
45 #include "lo-error.h" | 42 #include "lo-error.h" |
46 #include "pathlen.h" | 43 #include "pathlen.h" |