]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliLog.cxx
- Implementing functions for the GRP preprocessor to retrieve DA output files from...
[u/mrichter/AliRoot.git] / STEER / AliLog.cxx
index e59bb7a03f1cade5c831adbd1a5b30534c6ca2e9..025852d202a91a4874cb4d36506385c8fdc7fb44 100644 (file)
@@ -31,6 +31,7 @@
 //                                                                           //
 ///////////////////////////////////////////////////////////////////////////////
 
+#include <cstdlib>
 #include <strings.h>
 #include <Riostream.h>
 #include <TError.h>
@@ -38,6 +39,7 @@
 #include <TSystem.h>
 #include <TEnv.h>
 #include <TArrayC.h>
+#include <Varargs.h> // platform independent definition of va_copy
 
 #include "AliLog.h"
 
@@ -189,7 +191,7 @@ void AliLog::ReadEnvSettings()
     char* p = const_cast<char*>(levels.Data());
     while (const char* module = strtok(p, " ")) {
       p = NULL;
-      char* pos = index(module, ':');
+      char* pos = const_cast<char*>(index(module, ':'));
       if (!pos) continue;
       *(pos++) = '\0';
       Int_t level = atoi(pos);
@@ -204,7 +206,7 @@ void AliLog::ReadEnvSettings()
     char* p = const_cast<char*>(levels.Data());
     while (const char* className = strtok(p, " ")) {
       p = NULL;
-      char* pos = index(className, ':');
+      char* pos = const_cast<char*>(index(className, ':'));
       if (!pos) continue;
       *(pos++) = '\0';
       Int_t level = atoi(pos);
@@ -1055,6 +1057,8 @@ void  AliLog::PrintString(Int_t type, FILE* stream, const char* format, ...)
 #ifdef R__VA_COPY
     va_list bap;
     R__VA_COPY(bap, ap);
+#else
+#warning definition of R__VA_COPY has disappeared
 #endif //R__VA_COPY
 
     Int_t iResult=0;