aboutsummaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2010-02-04 21:37:00 +0000
committerDavid <david@xagasoft.com>2010-02-04 21:37:00 +0000
commit1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b (patch)
treebd4236dd6ffb7e7ca19eb3611e3c57e8f1ef924e /src/logger.cpp
parent81b7d806028bd484e2765cbc57b9677544bf52b2 (diff)
downloadlibbu++-1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b.tar.gz
libbu++-1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b.tar.bz2
libbu++-1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b.tar.xz
libbu++-1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b.zip
david - Made a build-M3 file for building to windows (mingw). This one actually builds *.cpp, yay!... Although i took out Process, Plugger, and Regex... to be re-added later... also had to stubify a few more functions when compiling on WIN32.
Diffstat (limited to '')
-rw-r--r--src/logger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index e3de2fb..b8f9ca3 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -23,6 +23,7 @@ Bu::Logger::~Logger()
23 23
24void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...) 24void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...)
25{ 25{
26#ifndef WIN32
26 if( (nLevel&nLevelMask) == 0 ) 27 if( (nLevel&nLevelMask) == 0 )
27 return; 28 return;
28 29
@@ -63,6 +64,9 @@ void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction,
63 write( fileno(stdout), line, strlen(line) ); 64 write( fileno(stdout), line, strlen(line) );
64 free( text ); 65 free( text );
65 free( line ); 66 free( line );
67#else
68 #warning Bu::Logger::log IS A STUB for WIN32!!!!
69#endif
66} 70}
67 71
68void Bu::Logger::setFormat( const Bu::FString &str ) 72void Bu::Logger::setFormat( const Bu::FString &str )