Revert "move sparsehash out of mapnik dir"
This reverts commit 720fbc74a1
.
This commit is contained in:
parent
26d3084ead
commit
0636734f8f
9 changed files with 15 additions and 15 deletions
|
@ -96,13 +96,13 @@
|
||||||
#ifndef _DENSE_HASH_MAP_H_
|
#ifndef _DENSE_HASH_MAP_H_
|
||||||
#define _DENSE_HASH_MAP_H_
|
#define _DENSE_HASH_MAP_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <algorithm> // needed by stl_alloc
|
#include <algorithm> // needed by stl_alloc
|
||||||
#include <functional> // for equal_to<>, select1st<>, etc
|
#include <functional> // for equal_to<>, select1st<>, etc
|
||||||
#include <memory> // for alloc
|
#include <memory> // for alloc
|
||||||
#include <utility> // for pair<>
|
#include <utility> // for pair<>
|
||||||
#include <sparsehash/internal/densehashtable.h> // IWYU pragma: export
|
#include <mapnik/sparsehash/internal/densehashtable.h> // IWYU pragma: export
|
||||||
#include <sparsehash/internal/libc_allocator_with_realloc.h>
|
#include <mapnik/sparsehash/internal/libc_allocator_with_realloc.h>
|
||||||
#include HASH_FUN_H // for hash<>
|
#include HASH_FUN_H // for hash<>
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
|
@ -89,7 +89,7 @@
|
||||||
#ifndef _DENSEHASHTABLE_H_
|
#ifndef _DENSEHASHTABLE_H_
|
||||||
#define _DENSEHASHTABLE_H_
|
#define _DENSEHASHTABLE_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h> // for FILE, fwrite, fread
|
#include <stdio.h> // for FILE, fwrite, fread
|
||||||
#include <algorithm> // For swap(), eg
|
#include <algorithm> // For swap(), eg
|
||||||
|
@ -97,9 +97,9 @@
|
||||||
#include <limits> // for numeric_limits
|
#include <limits> // for numeric_limits
|
||||||
#include <memory> // For uninitialized_fill
|
#include <memory> // For uninitialized_fill
|
||||||
#include <utility> // for pair
|
#include <utility> // for pair
|
||||||
#include <sparsehash/internal/hashtable-common.h>
|
#include <mapnik/sparsehash/internal/hashtable-common.h>
|
||||||
#include <sparsehash/internal/libc_allocator_with_realloc.h>
|
#include <mapnik/sparsehash/internal/libc_allocator_with_realloc.h>
|
||||||
#include <sparsehash/type_traits.h>
|
#include <mapnik/sparsehash/type_traits.h>
|
||||||
#include <stdexcept> // For length_error
|
#include <stdexcept> // For length_error
|
||||||
|
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
|
@ -40,7 +40,7 @@
|
||||||
#ifndef UTIL_GTL_HASHTABLE_COMMON_H_
|
#ifndef UTIL_GTL_HASHTABLE_COMMON_H_
|
||||||
#define UTIL_GTL_HASHTABLE_COMMON_H_
|
#define UTIL_GTL_HASHTABLE_COMMON_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h> // for size_t
|
#include <stddef.h> // for size_t
|
|
@ -32,7 +32,7 @@
|
||||||
#ifndef UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
#ifndef UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
||||||
#define UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
#define UTIL_GTL_LIBC_ALLOCATOR_WITH_REALLOC_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <stdlib.h> // for malloc/realloc/free
|
#include <stdlib.h> // for malloc/realloc/free
|
||||||
#include <stddef.h> // for ptrdiff_t
|
#include <stddef.h> // for ptrdiff_t
|
||||||
#include <new> // for placement new
|
#include <new> // for placement new
|
|
@ -49,7 +49,7 @@
|
||||||
#ifndef BASE_TEMPLATE_UTIL_H_
|
#ifndef BASE_TEMPLATE_UTIL_H_
|
||||||
#define BASE_TEMPLATE_UTIL_H_
|
#define BASE_TEMPLATE_UTIL_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
||||||
// Types small_ and big_ are guaranteed such that sizeof(small_) <
|
// Types small_ and big_ are guaranteed such that sizeof(small_) <
|
|
@ -57,10 +57,10 @@
|
||||||
#ifndef BASE_TYPE_TRAITS_H_
|
#ifndef BASE_TYPE_TRAITS_H_
|
||||||
#define BASE_TYPE_TRAITS_H_
|
#define BASE_TYPE_TRAITS_H_
|
||||||
|
|
||||||
#include <sparsehash/internal/sparseconfig.h>
|
#include <mapnik/sparsehash/internal/sparseconfig.h>
|
||||||
#include <utility> // For pair
|
#include <utility> // For pair
|
||||||
|
|
||||||
#include <sparsehash/template_util.h> // For true_type and false_type
|
#include <mapnik/sparsehash/template_util.h> // For true_type and false_type
|
||||||
|
|
||||||
_START_GOOGLE_NAMESPACE_
|
_START_GOOGLE_NAMESPACE_
|
||||||
|
|
|
@ -37,8 +37,8 @@ subdirglobs = [
|
||||||
('json', 'mapnik/json/*.hpp'),
|
('json', 'mapnik/json/*.hpp'),
|
||||||
('markers_placements', 'mapnik/markers_placements/*.hpp'),
|
('markers_placements', 'mapnik/markers_placements/*.hpp'),
|
||||||
('renderer_common', 'mapnik/renderer_common/*.hpp'),
|
('renderer_common', 'mapnik/renderer_common/*.hpp'),
|
||||||
('sparsehash', '../deps/sparsehash/*'),
|
('sparsehash', '../deps/mapnik/sparsehash/*'),
|
||||||
('sparsehash/internal', '../deps/sparsehash/internal/*'),
|
('sparsehash/internal', '../deps/mapnik/sparsehash/internal/*'),
|
||||||
('svg', 'mapnik/svg/*.hpp'),
|
('svg', 'mapnik/svg/*.hpp'),
|
||||||
('text', 'mapnik/text/*.hpp'),
|
('text', 'mapnik/text/*.hpp'),
|
||||||
('text/formatting', 'mapnik/text/formatting/*.hpp'),
|
('text/formatting', 'mapnik/text/formatting/*.hpp'),
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#include <mapnik/warning_ignore.hpp>
|
#include <mapnik/warning_ignore.hpp>
|
||||||
#ifdef USE_DENSE_HASH_MAP
|
#ifdef USE_DENSE_HASH_MAP
|
||||||
#include <sparsehash/dense_hash_map>
|
#include <mapnik/sparsehash/dense_hash_map>
|
||||||
using rgba_hash_table = google::dense_hash_map<unsigned int, unsigned char>;
|
using rgba_hash_table = google::dense_hash_map<unsigned int, unsigned char>;
|
||||||
#else
|
#else
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
Loading…
Reference in a new issue