summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index d686f35..7031069 100644
--- a/src/log.c
+++ b/src/log.c
@@ -37,7 +37,7 @@
#include <stdlib.h>
#include <stdio.h>
-#ifndef _MSC_VER
+#ifndef WINVER
#define SYSLOG_NAMES
#include <syslog.h>
#endif
@@ -65,7 +65,7 @@ log_target_type_t log_target_parse_type(const char* conf)
if(!conf)
return TARGET_UNKNOWN;
-#ifndef _MSC_VER
+#ifndef WINVER
if(!strncmp(conf, "syslog", 6)) return TARGET_SYSLOG;
#endif
if(!strncmp(conf, "file", 4)) return TARGET_FILE;
@@ -97,7 +97,7 @@ int log_targets_add(log_targets_t* targets, const char* conf)
log_target_t* new_target = NULL;
int duplicates_allowed = 0;
switch(log_target_parse_type(conf)) {
-#ifndef _MSC_VER
+#ifndef WINVER
case TARGET_SYSLOG: new_target = log_target_syslog_new(); break;
#endif
case TARGET_FILE: new_target = log_target_file_new(); duplicates_allowed = 1; break;