Fix build on Windows
1 files changed, 11 insertions(+), 1 deletions(-) M ffi/target-syslog.c
M ffi/target-syslog.c +11 -1
@@ 1,5 1,5 @@ -#ifdef __APPLE__ +#if defined(__APPLE__) #include <CoreFoundation/CoreFoundation.h> @@ 11,6 11,16 @@ void write_to_syslog(const char *string) NSLog(format, string); } +#elif defined(_WIN32) + +#include <windows.h> +#include <debugapi.h> + +void write_to_syslog(const char *string) +{ + OutputDebugString(string); +} + #else #include <syslog.h>