Fix build error due to DEBUGFILE
authorPerttu Ahola <celeron55@gmail.com>
Sat, 16 Jun 2012 18:36:54 +0000 (21:36 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 16 Jun 2012 18:36:54 +0000 (21:36 +0300)
src/main.cpp

index 928b878444205b74e9cfe7f7a72cba75ee16721d..3c9184e2e6c5d9aec29bccb05f0eb57baacfaaab 100644 (file)
@@ -877,8 +877,9 @@ int main(int argc, char *argv[])
        init_gettext((porting::path_share+DIR_DELIM+".."+DIR_DELIM+"locale").c_str());
        
        // Initialize debug streams
+#define DEBUGFILE "debug.txt"
 #ifdef RUN_IN_PLACE
-       std::string logfile = "debug.txt";
+       std::string logfile = DEBUGFILE;
 #else
        std::string logfile = porting::path_user+DIR_DELIM+DEBUGFILE;
 #endif