diff options
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |