X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=log.cpp;h=409639fed7fa02e913b7024db82c6a92a8ca9f3a;hp=d481cc43496a3ab962b6f7c19239bcaf471c21b7;hb=b757a4a2ce9d24835b52a185134835762af2f50c;hpb=cae5f07bb801779095855c47c99464c691bb26bb diff --git a/log.cpp b/log.cpp index d481cc4..409639f 100644 --- a/log.cpp +++ b/log.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -16,9 +17,9 @@ using namespace std; #define SYSLOG_FAKE_FILE (static_cast(NULL)) bool logging_started = false; -std::vector log_destinations; +vector log_destinations; -void add_log_destination_file(const std::string &filename) +void add_log_destination_file(const string &filename) { FILE *fp = fopen(filename.c_str(), "a"); if (fp == NULL) {