X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Floggers%2Ffile_logger.cpp;h=d21f7b5915d3669f79fce68f21586362acfbf111;hb=b43d05116706d888890418ce9f24fa540aa4ef10;hp=a18caa14b38e0f545fe2fd96cb05a8c53cad7cea;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/loggers/file_logger.cpp b/nucleus/library/loggers/file_logger.cpp index a18caa14..d21f7b59 100644 --- a/nucleus/library/loggers/file_logger.cpp +++ b/nucleus/library/loggers/file_logger.cpp @@ -27,13 +27,12 @@ #include #include -#ifdef __WIN32__ +#if defined(__UNIX__) || defined(__GNU_WINDOWS__) + #include +#else #include #endif #include -#ifdef __UNIX__ - #include -#endif using namespace basis; using namespace configuration; @@ -61,7 +60,7 @@ int static_chaos() { file_logger::file_logger() : _filename(new astring()), _file_limit(DEFAULT_LOG_FILE_SIZE), - _outfile(NIL), + _outfile(NULL_POINTER), _flock(new mutex) { name(""); @@ -70,7 +69,7 @@ file_logger::file_logger() file_logger::file_logger(const astring &initial_filename, int limit) : _filename(new astring()), _file_limit(limit), - _outfile(NIL), + _outfile(NULL_POINTER), _flock(new mutex) { name(initial_filename);