You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
779 B
34 lines
779 B
#ifndef __PyCXX_config_hh__
|
|
#define __PyCXX_config_hh__
|
|
|
|
//
|
|
// Microsoft VC++ 6.0 has no traits
|
|
//
|
|
#if defined( _MSC_VER )
|
|
|
|
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
|
|
|
|
#elif defined( __GNUC__ )
|
|
# if __GNUC__ >= 3
|
|
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
|
|
# else
|
|
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0
|
|
#endif
|
|
|
|
//
|
|
// Assume all other compilers do
|
|
//
|
|
#else
|
|
|
|
// Macros to deal with deficiencies in compilers
|
|
# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1
|
|
#endif
|
|
|
|
#if STANDARD_LIBRARY_HAS_ITERATOR_TRAITS
|
|
# define random_access_iterator_parent(itemtype) std::iterator<std::random_access_iterator_tag,itemtype,int>
|
|
#else
|
|
# define random_access_iterator_parent(itemtype) std::random_access_iterator<itemtype, int>
|
|
#endif
|
|
|
|
#endif // __PyCXX_config_hh__
|