diff options
Diffstat (limited to 'sources/shiboken2/ext/sparsehash/google/sparsehash/sparseconfig.h')
-rw-r--r-- | sources/shiboken2/ext/sparsehash/google/sparsehash/sparseconfig.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sources/shiboken2/ext/sparsehash/google/sparsehash/sparseconfig.h b/sources/shiboken2/ext/sparsehash/google/sparsehash/sparseconfig.h new file mode 100644 index 000000000..28c85d1f4 --- /dev/null +++ b/sources/shiboken2/ext/sparsehash/google/sparsehash/sparseconfig.h @@ -0,0 +1,45 @@ +/* + * NOTE: This file is for internal use only. + * Do not use these #defines in your own program! + */ + +/* Namespace for Google classes */ +#define GOOGLE_NAMESPACE ::google + +#ifdef _MSC_VER + /* the location of the header defining hash functions */ + #define HASH_FUN_H <unordered_map> + /* the namespace of the hash<> function */ + #define HASH_NAMESPACE stdext + /* The system-provided hash function including the namespace. */ + #define SPARSEHASH_HASH HASH_NAMESPACE::hash_compare +/* libc++ does not implement the tr1 namespce, instead the + * equivalient functionality is placed in namespace std, + * so use when it targeting such systems (OS X 10.7 onwards) */ +#elif defined(_LIBCPP_VERSION) + /* the location of the header defining hash functions */ + #define HASH_FUN_H <functional> + /* the namespace of the hash<> function */ + #define HASH_NAMESPACE std + /* The system-provided hash function including the namespace. */ + #define SPARSEHASH_HASH HASH_NAMESPACE::hash +#else + /* the location of the header defining hash functions */ + #define HASH_FUN_H <tr1/functional> + /* the namespace of the hash<> function */ + #define HASH_NAMESPACE std::tr1 + /* The system-provided hash function including the namespace. */ + #define SPARSEHASH_HASH HASH_NAMESPACE::hash +#endif + +/* Define to 1 if the system has the type `long long'. */ +#define HAVE_LONG_LONG 1 + +/* the namespace where STL code like vector<> is defined */ +#define STL_NAMESPACE std + +/* Stops putting the code inside the Google namespace */ +#define _END_GOOGLE_NAMESPACE_ } + +/* Puts following code inside the Google namespace */ +#define _START_GOOGLE_NAMESPACE_ namespace google { |