Following the ROOT example on how to deal with large-file extensions.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 15:38:47 +0000 (15:38 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 17 Oct 2009 15:38:47 +0000 (15:38 +0000)
MONITOR/deroot.cxx

index c5361b3..2f8380a 100644 (file)
@@ -4,6 +4,7 @@
   MOOD - Monitor Of On-line Data and Detector Debugger for ALICE Experiment
 ******************************************************************************/
 
+#include <RConfig.h>
 #include <TError.h>
 #include <TSystem.h>
 #include <TSysEvtHandler.h>
@@ -34,10 +35,10 @@ int deroot(const char *rootFileName, const char *dateFileName, const char *ddlFi
  t->SetBranchAddress("rawevent", &rootEvent);
 
  FILE *dateFile;
-#ifdef __APPLE__
- if(!(dateFile=fopen(dateFileName, "wb"))) {
-#else
+#if defined(R__SEEK64)
  if(!(dateFile=fopen64(dateFileName, "wb"))) {
+#else
+ if(!(dateFile=fopen(dateFileName, "wb"))) {
 #endif
   cerr << "Error opening DATE file" << endl;
   return(1);