diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 20:06:19 +0100 |
commit | 140e2252be1a2263525ffb6811951c258b8cceea (patch) | |
tree | e19e2b691e819f73f54fae9d14f0b3e38a02eee0 /tests/log | |
parent | 420a39bb53ad4a24823e924868e67a3966d663f0 (diff) | |
download | wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.gz wolfbones-140e2252be1a2263525ffb6811951c258b8cceea.tar.bz2 |
added platform SDK and started the event logger on Windows
Diffstat (limited to 'tests/log')
-rw-r--r-- | tests/log/Makefile.W32 | 6 | ||||
-rw-r--r-- | tests/log/test_log.c | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/tests/log/Makefile.W32 b/tests/log/Makefile.W32 index c2f19f0..324d34f 100644 --- a/tests/log/Makefile.W32 +++ b/tests/log/Makefile.W32 @@ -5,8 +5,12 @@ SUBDIRS = INCLUDE_DIRS = \ /I$(TOPDIR)\include\wolf /I. +INCLUDE_LDFLAGS = \ + /LIBPATH:"$(PLATFORM_SDK_DIR)\lib" + INCLUDE_LIBS = \ - $(TOPDIR)\src\wolf.lib + $(TOPDIR)\src\wolf.lib \ + advapi32.lib TEST_BINS = \ test_log.exe diff --git a/tests/log/test_log.c b/tests/log/test_log.c index dadf71d..520271a 100644 --- a/tests/log/test_log.c +++ b/tests/log/test_log.c @@ -5,10 +5,13 @@ int main( void ) { wolf_log_openlogtostderr( WOLF_LOG_NOTICE ); wolf_log_openlogtofile( "test.log", WOLF_LOG_NOTICE ); -#if defined HAVE_SYSLOG_H +#if defined WOLF_LOG_HAVE_SYSLOG wolf_log_openlogtosyslog( "test", WOLF_LOG_DAEMON, WOLF_LOG_NOTICE, WOLF_LOG_SYSLOG_DEFAULT_OPTIONS ); #endif +#if defined WOLF_LOG_HAVE_EVENTLOG + wolf_log_openlogtoeventlog( ); +#endif WOLF_LOG( WOLF_LOG_NOTICE, "Started the logger" ); WOLF_LOG( WOLF_LOG_ERR, "This is error %d", 5 ); @@ -16,7 +19,10 @@ int main( void ) { WOLF_LOG( WOLF_LOG_NOTICE, "Closed the logger" ); -#if defined HAVE_SYSLOG_H +#if defined WOLF_LOG_HAVE_EVENTLOG + wolf_log_closelogtoeventlog( ); +#endif +#if defined WOLF_LOG_HAVE_SYSLOG wolf_log_closelogtosyslog( ); #endif wolf_log_closelogtofile( ); |