Protect instantation of common blocks to when we compile the library only (Christian)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 May 2007 12:36:52 +0000 (12:36 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 May 2007 12:36:52 +0000 (12:36 +0000)
TMEVSIM/MevSimCommon.h

index be54066..f56db2b 100644 (file)
@@ -43,8 +43,10 @@ extern "C" {
      Float_t pout[NPID*4*FACTORIAL_MAX];
   }  TrackCommon;
   
+#ifdef IN_TMEVSIM_CXX
 #define TRACK COMMON_BLOCK(TRACK,track)
 COMMON_BLOCK_DEF(TrackCommon,TRACK);
+#endif 
 }
 #endif