X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flog.cpp;h=ce660e8a0cf742fdf189f05d0ddfa4308fc89030;hb=6c19e4098a43c47f8cd1824902f7335e124b834f;hp=e4d410673d9bea7f8e4f3ea215980e31636c0567;hpb=99c569a1257cc13ddd2201870266c9ef83ee3fcc;p=virtualjaguar diff --git a/src/log.cpp b/src/log.cpp index e4d4106..ce660e8 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -1,20 +1,23 @@ // // Log handler // -// by Cal2 +// Originally by David Raingeard (Cal2) // GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS) // Cleanups/new stuff by James L. Hammons // -#include "types.h" #include "log.h" +#include +#include +#include "types.h" + #define MAX_LOG_SIZE 10000000 // Maximum size of log file (10 MB) static FILE * log_stream = NULL; static uint32 logSize = 0; -int log_init(char * path) +int log_init(const char * path) { log_stream = fopen(path, "wrt");