fprintf/vfprintf dependency fix
[cacao.git] / src / toolbox / logging.cpp
index a16c802d4b389bd105fdc13a97c8b4fdc48cda65..1a05754943a68a6d89c208f0f5c04e318f36cd6a 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "vm/types.h"
 
-#include "mm/memory.h"
+#include "mm/memory.hpp"
 
 #include "threads/thread.hpp"
 
@@ -109,9 +109,9 @@ void log_start(void)
 void log_vprint(const char *text, va_list ap)
 {
        if (logfile)
-               vfprintf(logfile, text, ap);
+               os::vfprintf(logfile, text, ap);
        else
-               vfprintf(stdout, text, ap);
+               os::vfprintf(stdout, text, ap);
 }
 
 
@@ -278,7 +278,7 @@ void log_message_method(const char *msg, methodinfo *m)
  * Emacs will automagically detect them.
  * ---------------------------------------------------------------------
  * Local variables:
- * mode: c
+ * mode: c++
  * indent-tabs-mode: t
  * c-basic-offset: 4
  * tab-width: 4