summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syslog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index 383848372..df90e4e29 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -300,7 +300,7 @@ syslog (int priority, const char *message, ...)
return;
}
- if (os_being_run != winNT)
+ if (!iswinnt)
{
/* Add a priority string - not needed for NT
as NT has its own priority codes. */
@@ -336,7 +336,7 @@ syslog (int priority, const char *message, ...)
msg_strings[0] = total_msg;
- if (os_being_run == winNT)
+ if (iswinnt)
{
/* For NT, open the event log and send the message */
HANDLE hEventSrc = RegisterEventSourceA (NULL, (process_ident != NULL) ?