Skip to content

Commit abc882d

Browse files
committed
CDRIVER-2473 use stdint.h instead of bson-stdint{,-win32}.h
This change applies to non-MSVC compilers/platforms (for bson-stdint.h) and also to MSVC (for bson-stdint-win32.h). This change only affects building with CMake.
1 parent 01f2055 commit abc882d

File tree

8 files changed

+1
-317
lines changed

8 files changed

+1
-317
lines changed

src/libbson/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ configure_file (
142142
"${PROJECT_BINARY_DIR}/src/bson/bson-version.h"
143143
)
144144

145-
configure_file (
146-
"${PROJECT_SOURCE_DIR}/build/cmake/bson/bson-stdint.h"
147-
"${PROJECT_BINARY_DIR}/src/bson/bson-stdint.h"
148-
)
149-
150145
include_directories ("${PROJECT_BINARY_DIR}/src/bson")
151146
include_directories ("${PROJECT_SOURCE_DIR}/src/bson")
152147
include_directories ("${PROJECT_SOURCE_DIR}/src")
@@ -184,7 +179,6 @@ set (SOURCES
184179

185180
set (HEADERS
186181
${PROJECT_BINARY_DIR}/src/bson/bson-config.h
187-
${PROJECT_BINARY_DIR}/src/bson/bson-stdint.h
188182
${PROJECT_BINARY_DIR}/src/bson/bson-version.h
189183
${PROJECT_SOURCE_DIR}/src/bson/bcon.h
190184
${PROJECT_SOURCE_DIR}/src/bson/bson-atomic.h
@@ -203,7 +197,6 @@ set (HEADERS
203197
${PROJECT_SOURCE_DIR}/src/bson/bson-memory.h
204198
${PROJECT_SOURCE_DIR}/src/bson/bson-oid.h
205199
${PROJECT_SOURCE_DIR}/src/bson/bson-reader.h
206-
${PROJECT_SOURCE_DIR}/src/bson/bson-stdint-win32.h
207200
${PROJECT_SOURCE_DIR}/src/bson/bson-string.h
208201
${PROJECT_SOURCE_DIR}/src/bson/bson-types.h
209202
${PROJECT_SOURCE_DIR}/src/bson/bson-utf8.h

src/libbson/THIRD_PARTY_NOTICES

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2727
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2828

2929

30-
License notice for bson-stdint-win32.h
31-
-------------------------------------------------------------------------------
32-
33-
BSD 3-Clause License
34-
35-
ISO C9x compliant stdint.h for Microsoft Visual Studio
36-
Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
37-
38-
Copyright (c) 2006-2013 Alexander Chemeris
39-
40-
Redistribution and use in source and binary forms, with or without
41-
modification, are permitted provided that the following conditions are met:
42-
43-
1. Redistributions of source code must retain the above copyright notice,
44-
this list of conditions and the following disclaimer.
45-
2. Redistributions in binary form must reproduce the above copyright
46-
notice, this list of conditions and the following disclaimer in the
47-
documentation and/or other materials provided with the distribution.
48-
3. Neither the name of the product nor the names of its contributors may
49-
be used to endorse or promote products derived from this software
50-
without specific prior written permission.
51-
52-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
53-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
54-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
55-
EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
56-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
57-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
58-
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
59-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
60-
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
61-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62-
63-
6430
License notice for b64_pton.h and b64_ntop.h
6531
-------------------------------------------------------------------------------
6632

src/libbson/build/cmake/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
add_subdirectory (bson)
2-
31
set (src_libbson_build_cmake_MODULES
42
BSONPackage.cmake
53
)
@@ -19,6 +17,5 @@ set_local_dist (src_libbson_build_cmake_DIST_local
1917

2018
set (src_libbson_build_cmake_DIST
2119
${src_libbson_build_cmake_DIST_local}
22-
${src_libbson_build_cmake_bson_DIST}
2320
PARENT_SCOPE
2421
)

src/libbson/build/cmake/bson/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/libbson/build/cmake/bson/bson-stdint.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/libbson/src/bson/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ set (src_libbson_src_bson_DIST_hs
2222
bson-value.h
2323
bson-version-functions.h
2424
bson-writer.h
25-
bson-stdint-win32.h
2625
b64_ntop.h
2726
b64_pton.h
2827
bson-private.h
@@ -32,7 +31,6 @@ set (src_libbson_src_bson_DIST_hs
3231
bson-timegm-private.h
3332
)
3433
extra_dist_generated (
35-
bson-stdint.h
3634
bson-version.h
3735
)
3836

src/libbson/src/bson/bson-compat.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,13 @@
8080
#include <stdlib.h>
8181
#include <string.h>
8282
#include <time.h>
83+
#include <stdint.h>
8384

8485

8586
BSON_BEGIN_DECLS
8687

8788

8889
#ifdef _MSC_VER
89-
#include <time.h>
90-
#include "bson-stdint-win32.h"
9190
#ifndef __cplusplus
9291
/* benign redefinition of type */
9392
#pragma warning(disable : 4142)
@@ -131,7 +130,6 @@ typedef SSIZE_T ssize_t;
131130
#define PRIu64 "I64u"
132131
#endif
133132
#else
134-
#include "bson-stdint.h"
135133
#include <inttypes.h>
136134
#endif
137135

src/libbson/src/bson/bson-stdint-win32.h

Lines changed: 0 additions & 263 deletions
This file was deleted.

0 commit comments

Comments
 (0)