CMS 3D CMS Logo

GCCPrerequisite.h

Go to the documentation of this file.
00001 #ifndef FWCore_Utilities_GCCPrerequisite_h
00002 #define FWCore_Utilities_GCCPrerequisite_h
00003 
00004 /* Convenience macro to test the version of gcc.
00005    Use it like this:
00006    #if GCC_PREREQUISITE(3,4,4)
00007    ... code requiring gcc 3.4.4 or later ...
00008    #endif
00009    Note - it won't work for gcc1 since the _MINOR macros
00010    were not defined then.  */
00011 #if defined __GNUC__ && defined __GNUC_MINOR__ && defined __GNUC_PATCHLEVEL__
00012 # define GCC_PREREQUISITE(maj, min, patch) \
00013         ((__GNUC__ << 16) + (__GNUC_MINOR__ << 8) + __GNUC_PATCHLEVEL__ >= ((maj) << 16) + ((min) << 8) + (patch))
00014 #elif defined __GNUC__ && defined __GNUC_MINOR__ 
00015 # define GCC_PREREQUISITE(maj, min, patch) \
00016         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
00017 #else
00018 # define GCC_PREREQUISITE(maj, min, patch) 0
00019 #endif
00020 
00021 #endif

Generated on Tue Jun 9 17:36:41 2009 for CMSSW by  doxygen 1.5.4