2
// Copyright (C) 2007 and onwards Google, Inc.
5
// MacOSX-specific STL help, mirroring examples in stl_decl_msvc.h et
6
// al. Although this convention is apparently deprecated (see mec's
7
// comments in stl_decl_msvc.h), it is the consistent way of getting
8
// google3 happy on OSX.
10
// Don't include this directly.
12
#ifndef _STL_DECL_OSX_H
13
#define _STL_DECL_OSX_H
15
#if !defined(__APPLE__) || !defined(OS_MACOSX)
16
#error "This file is only for MacOSX."
55
using std::priority_queue;
58
#include <bits/stl_tempbuf.h>
59
#include <ext/functional>
60
#include <ext/hash_fun.h>
61
#include <ext/hashtable.h>
66
#include <ext/hash_set>
67
#include <ext/hash_map>
70
using __gnu_cxx::hash;
71
using __gnu_cxx::hash_set;
72
using __gnu_cxx::hash_map;
73
using __gnu_cxx::select1st;
75
/* On Linux (and gdrive on OSX), this comes from places like
76
google3/third_party/stl/gcc3/new. On OSX using "builtin"
77
stl headers, however, it does not get defined. */
78
#ifndef __STL_USE_STD_ALLOCATORS
79
#define __STL_USE_STD_ALLOCATORS 1
83
#ifndef HASH_NAMESPACE
84
/* We can't define it here; it's too late. */
85
#error "HASH_NAMESPACE needs to be defined in the Makefile".
88
#endif /* _STL_DECL_OSX_H */