~evarlast/ubuntu/utopic/mongodb/upstart-workaround-debian-bug-718702

« back to all changes in this revision

Viewing changes to src/third_party/s2/base/stl_decl_osx.h

  • Committer: Package Import Robot
  • Author(s): James Page, James Page, Robie Basak
  • Date: 2013-05-29 17:44:42 UTC
  • mfrom: (44.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20130529174442-z0a4qmoww4y0t458
Tags: 1:2.4.3-1ubuntu1
[ James Page ]
* Merge from Debian unstable, remaining changes:
  - Enable SSL support:
    + d/control: Add libssl-dev to BD's.
    + d/rules: Enabled --ssl option.
    + d/mongodb.conf: Add example SSL configuration options.
  - d/mongodb-server.mongodb.upstart: Add upstart configuration.
  - d/rules: Don't strip binaries during scons build for Ubuntu.
  - d/control: Add armhf to target archs.
  - d/p/SConscript.client.patch: fixup install of client libraries.
  - d/p/0010-install-libs-to-usr-lib-not-usr-lib64-Closes-588557.patch:
    Install libraries to lib not lib64.
* Dropped changes:
  - d/p/arm-support.patch: Included in Debian.
  - d/p/double-alignment.patch: Included in Debian.
  - d/rules,control: Debian also builds with avaliable system libraries
    now.
* Fix FTBFS due to gcc and boost upgrades in saucy:
  - d/p/0008-ignore-unused-local-typedefs.patch: Add -Wno-unused-typedefs
    to unbreak building with g++-4.8.
  - d/p/0009-boost-1.53.patch: Fixup signed/unsigned casting issue.

[ Robie Basak ]
* d/p/0011-Use-a-signed-char-to-store-BSONType-enumerations.patch: Fixup
  build failure on ARM due to missing signed'ness of char cast.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Copyright (C) 2007 and onwards Google, Inc.
 
3
//
 
4
//
 
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.
 
9
//
 
10
// Don't include this directly.
 
11
 
 
12
#ifndef _STL_DECL_OSX_H
 
13
#define _STL_DECL_OSX_H
 
14
 
 
15
#if !defined(__APPLE__) || !defined(OS_MACOSX)
 
16
#error "This file is only for MacOSX."
 
17
#endif
 
18
 
 
19
#include <cstddef>
 
20
#include <algorithm>
 
21
using std::min;
 
22
using std::max;
 
23
using std::swap;
 
24
using std::reverse;
 
25
 
 
26
#include <string>
 
27
using std::string;
 
28
 
 
29
#include <vector>
 
30
using std::vector;
 
31
 
 
32
#include <functional>
 
33
using std::less;
 
34
 
 
35
#include <utility>
 
36
using std::pair;
 
37
using std::make_pair;
 
38
 
 
39
#include <set>
 
40
using std::set;
 
41
using std::multiset;
 
42
 
 
43
#include <list>
 
44
#include <deque>
 
45
#include <iostream>
 
46
using std::ostream;
 
47
using std::cout;
 
48
using std::endl;
 
49
 
 
50
#include <map>
 
51
using std::map;
 
52
using std::multimap;
 
53
 
 
54
#include <queue>
 
55
using std::priority_queue;
 
56
 
 
57
#include <stack>
 
58
#include <bits/stl_tempbuf.h>
 
59
#include <ext/functional>
 
60
#include <ext/hash_fun.h>
 
61
#include <ext/hashtable.h>
 
62
#include <ios>
 
63
#include <string>
 
64
using std::string;
 
65
 
 
66
#include <ext/hash_set>
 
67
#include <ext/hash_map>
 
68
 
 
69
using namespace std;
 
70
using __gnu_cxx::hash;
 
71
using __gnu_cxx::hash_set;
 
72
using __gnu_cxx::hash_map;
 
73
using __gnu_cxx::select1st;
 
74
 
 
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
 
80
#endif
 
81
 
 
82
 
 
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".
 
86
#endif
 
87
 
 
88
#endif  /* _STL_DECL_OSX_H */