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 /crypto/cryptlib.c | |
parent | aff2922f9a6fa1175e2ba340d1f470bb2443a85b (diff) |
Move _WIN32_WINNT definition from command line to e_os.h [from HEAD].
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 6f8b0ff4e5..e73d086eed 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -624,7 +624,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, #include <tchar.h> #if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333 -static int IsService(void) +int OPENSSL_isservice(void) { HWINSTA h; DWORD len; WCHAR *name; @@ -722,7 +722,7 @@ void OPENSSL_showfatal (const char *fmta,...) #if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333 /* this -------------v--- guards NT-specific calls */ - if (GetVersion() < 0x80000000 && IsService()) + if (GetVersion() < 0x80000000 && OPENSSL_isservice()) { HANDLE h = RegisterEventSource(0,_T("OPENSSL")); const TCHAR *pmsg=buf; ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0); @@ -754,6 +754,7 @@ void OPENSSL_showfatal (const char *fmta,...) vfprintf (stderr,fmta,ap); va_end (ap); } +int OPENSSL_isservice (void) { return 0; } #endif void OpenSSLDie(const char *file,int line,const char *assertion) |