Changes needed on Mac (F.Carminati)
[u/mrichter/AliRoot.git] / STEER / AliRun.cxx
index c2cbff57663648e9efb58c4719cd0e011016fb20..8b3bb4e850a687ad55450dd7d3f07f37c2280a92 100644 (file)
 #include "AliPDG.h"
 #include "AliRun.h"
 #include "AliStack.h"
+#ifdef __APPLE__
+#include "AliTPCTrackHitsInterfaces.h"
+#endif
 
 AliRun *gAlice;
 
-
 ClassImp(AliRun)
 
 //_______________________________________________________________________
@@ -171,6 +173,14 @@ AliRun::AliRun(const char *name, const char *title):
   // Add particle list to configuration
   AliConfig::Instance()->Add(fPDGDB); 
 
+#ifdef __APPLE__
+  // Terrible hack to avoid problem with the initialisation of 
+  // static and globals on Mac OS X 
+  AliClassAliTrackHitsInfo p1=galiclass____AliClassAliTrackHitsInfo;
+  AliClassAliTrackHitsParam p2=galiclass____AliTrackHitsParam;
+  AliClassAliHitInfo p3=galiclass____AliHitInfo;
+#endif
+
 }