#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;
file_logger::file_logger()
: _filename(new astring()),
_file_limit(DEFAULT_LOG_FILE_SIZE),
- _outfile(NIL),
+ _outfile(NULL_POINTER),
_flock(new mutex)
{
name("");
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);