From 1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b Mon Sep 17 00:00:00 2001 From: David Date: Thu, 4 Feb 2010 21:37:00 +0000 Subject: 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. --- src/logger.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/logger.cpp') 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() void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, int nLine, const char *sFormat, ...) { +#ifndef WIN32 if( (nLevel&nLevelMask) == 0 ) return; @@ -63,6 +64,9 @@ void Bu::Logger::log( uint32_t nLevel, const char *sFile, const char *sFunction, write( fileno(stdout), line, strlen(line) ); free( text ); free( line ); +#else + #warning Bu::Logger::log IS A STUB for WIN32!!!! +#endif } void Bu::Logger::setFormat( const Bu::FString &str ) -- cgit v1.2.3