diff options
author | Andy Polyakov <appro@openssl.org> | 2005-05-21 13:19:46 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2005-05-21 13:19:46 +0000 |
commit | 886ed3544b8d40512968e4683c9202e2c875e3cb (patch) | |
tree | 26f69d81e473a67bf351a22ad758346283470c08 /e_os.h | |
parent | aff2922f9a6fa1175e2ba340d1f470bb2443a85b (diff) |
Move _WIN32_WINNT definition from command line to e_os.h [from HEAD].
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -235,6 +235,23 @@ extern "C" { # define NO_DIRENT # ifdef WINDOWS +# ifndef _WIN32_WINNT + /* + * Defining _WIN32_WINNT here in e_os.h implies certain "discipline." + * Most notably we ought to check for availability of each specific + * routine with GetProcAddress() and/or quard NT-specific calls with + * GetVersion() < 0x80000000. One can argue that in latter "or" case + * we ought to /DELAYLOAD some .DLLs in order to protect ourselves + * against run-time link errors. This doesn't seem to be necessary, + * because it turned out that already Windows 95, first non-NT Win32 + * implementation, is equipped with at least NT 3.51 stubs, dummy + * routines with same name, but which do nothing. Meaning that it's + * apparently appropriate to guard generic NT calls with GetVersion + * alone, while NT 4.0 and above calls ought to be additionally + * checked upon with GetProcAddress. + */ +# define _WIN32_WINNT 0x0400 +# endif # include <windows.h> # include <stddef.h> # include <errno.h> |