37 #ifdef MONGO_EXPOSE_MACROS
38 #error bson.h is for C++ driver consumer use only
45 #ifndef STATIC_LIBMONGOCLIENT
46 #if defined(_WIN32) && !defined(_DLL)
47 #error "The DLL build of libmongoclient requires consuming code to be built with /MD or /MDd"
54 #pragma warning(disable : 4996)
57 #pragma warning(disable : 4251)
58 #pragma warning(disable : 4275)
62 #if defined(_WIN32) && !defined(_WINSOCK2API_)
63 #error "You must include the windows and windows sockets headers before bson.h"
66 #include "mongo/config.h"
70 #include "mongo/client/autolib.h"
72 #include "mongo/bson/bson_validate.h"
73 #include "mongo/bson/bsonelement.h"
74 #include "mongo/bson/bsonobj.h"
75 #include "mongo/bson/bsonobjbuilder.h"
76 #include "mongo/bson/bsonobjiterator.h"
77 #include "mongo/bson/bsontypes.h"
78 #include "mongo/bson/bson-inl.h"
79 #include "mongo/bson/oid.h"
80 #include "mongo/bson/util/builder.h"
84 #if defined(_MSC_VER) && defined(_DLL)
remove mongo implementation macros after using
macros for mongo internals