X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fs%2Fwindowsnt.h;h=184da5e988a780717fdc250fc3e68f17d19f60fa;hb=2d2b1966e8c2644da3d9b88dc06745337a784af8;hp=6175a2cba55ff6d2080d146baa665fa00dbaa234;hpb=762383636a99307282c2d93d26c35c046ec24da1;p=chise%2Fxemacs-chise.git diff --git a/src/s/windowsnt.h b/src/s/windowsnt.h index 6175a2c..184da5e 100644 --- a/src/s/windowsnt.h +++ b/src/s/windowsnt.h @@ -226,9 +226,6 @@ typedef int pid_t; #define HAVE_MOUSE #define HAVE_H_ERRNO -#define HAVE_STRUCT_UTIMBUF - -#define HAVE_STRCASECMP /* Compatibility macros. Some used to be routines in nt.c */ #define strcasecmp(x,y) _stricmp(x,y) @@ -357,6 +354,16 @@ gid_t getegid (void); #endif #endif +/* Force the various NT 4 structures and constants to be included; we're + careful not to call (or even link with) functions not in NT 3.51 when + running on 3.51, but when running on NT 4 or Win9x, we use the later + functions, and need their headers. */ +/* The VC++ (5.0, at least) headers treat WINVER non-existent as 0x0400 */ +#if defined (WINVER) && WINVER < 0x0400 +# undef WINVER +# define WINVER 0x0400 +#endif + /* MSVC 6.0 has a mechanism to declare functions which never return */ #if (_MSC_VER >= 1200) #define DOESNT_RETURN __declspec(noreturn) void