Changeset 19856 for trunk/Mars


Ignore:
Timestamp:
11/03/19 12:44:22 (5 years ago)
Author:
tbretz
Message:
Also the include of unordered_map only needs to be secured for ROOTv5 CINT.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r19829 r19856  
    1515
    1616#define GCC_VERSION (__GNUC__ * 10000  + __GNUC_MINOR__ * 100  + __GNUC_PATCHLEVEL__)
    17 
    18 #ifndef __CINT__
    19 #include <unordered_map>
    20 #else
    21 #define off_t size_t
    22 namespace std
    23 {
    24     template<class T, class S> class unordered_map<T, S>;
    25 }
    26 #endif
    2717
    2818// ROOT_VERSION is not defined in ROOTv5, but special treatment is
     
    3424#define __ROOTv6__ 1
    3525#endif
     26#endif
     27
     28#if !defined(__CINT__) || defined(__CLING__) || defined(__ROOTv6__)
     29#include <unordered_map>
     30#else
     31#define off_t size_t
     32namespace std
     33{
     34    template<class T, class S> class unordered_map<T, S>;
     35}
    3636#endif
    3737
Note: See TracChangeset for help on using the changeset viewer.