deep mods
[feisty_meow.git] / nucleus / library / loggers / file_logger.cpp
index a18caa14b38e0f545fe2fd96cb05a8c53cad7cea..d21f7b5915d3669f79fce68f21586362acfbf111 100644 (file)
 #include <structures/static_memory_gremlin.h>
 #include <textual/byte_formatter.h>
 
-#ifdef __WIN32__
+#if defined(__UNIX__) || defined(__GNU_WINDOWS__)
+  #include <unistd.h>
+#else
   #include <io.h>
 #endif
 #include <stdio.h>
-#ifdef __UNIX__
-  #include <unistd.h>
-#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);