1
0
Fork 0
mirror of https://github.com/yarrick/iodine.git synced 2025-04-04 05:43:33 +03:00

Moved windows-specific syslog to windows.h (now macro)

This commit is contained in:
frekky 2016-03-13 13:43:34 +08:00
parent fe97f291cf
commit 1035840335
2 changed files with 13 additions and 17 deletions

View file

@ -133,23 +133,6 @@ sigint(int sig)
server_stop();
}
#ifdef WINDOWS32
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_ERR 3
#define LOG_WARNING 4
#define LOG_NOTICE 5
#define LOG_INFO 6
#define LOG_DEBUG 7
static void
syslog(int a, const char *str, ...)
{
/* TODO: implement (add to event log), move to common.c */
;
}
#endif
static void
print_usage() {
extern char *__progname;

View file

@ -93,6 +93,19 @@ struct ip
struct in_addr ip_src, ip_dst; /* source and dest address */
};
#ifdef WINDOWS32
#define LOG_EMERG 0
#define LOG_ALERT 1
#define LOG_CRIT 2
#define LOG_ERR 3
#define LOG_WARNING 4
#define LOG_NOTICE 5
#define LOG_INFO 6
#define LOG_DEBUG 7
/* dummy syslog definition to prevent compile errors */
#define syslog(...) /* TODO: implement (add to event log), move to common.c */
#endif
/* windows gettimeofday from https://gist.github.com/ugovaretto/5875385 */
#if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
#define DELTA_EPOCH_IN_MICROSECS 116444736000000000Ui64