Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e344f8d

Browse files
committed
Upgrade CXX to 5.4.2
svn path=/trunk/matplotlib/; revision=6760
1 parent e7b2af3 commit e344f8d

8 files changed

Lines changed: 535 additions & 279 deletions

CXX/Config.hxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,20 @@
115115
typedef int Py_ssize_t;
116116
#endif
117117

118+
// hash_map container usage selection
119+
// 1) if PYCXX_USING_STD_MAP is defined PyCXX will be using std::map<> container
120+
// implementation only.
121+
// 2) if compilers are used other than MS Visual Studio (7.1+) or GCC 3.x
122+
// STANDARD_LIBRARY_HAS_HASH_MAP must be defined before compilation to
123+
// make PyCXX using hash_map container.
124+
#if !defined( PYCXX_USING_STD_MAP )
125+
#if defined( _MSC_VER ) || defined( __INTEL_COMPILER ) || defined ( __ICC ) || (defined( __GNUC__ ) && ( __GNUC__ > 3 ))
126+
# define PYCXX_USING_HASH_MAP
127+
#else
128+
# if defined( STANDARD_LIBRARY_HAS_HASH_MAP ) && !defined( PYCXX_USING_HASH_MAP )
129+
# define PYCXX_USING_HASH_MAP
130+
# endif
131+
#endif
132+
#endif
133+
118134
#endif // __PyCXX_config_hh__

0 commit comments

Comments
 (0)