summaryrefslogtreecommitdiff
path: root/bson/bson.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-06-22 00:26:08 +0200
committerdwight <dwight@10gen.com>2010-06-22 00:26:08 +0200
commita38bc950bd720b6b299c0b8e2dd0e319f19daac7 (patch)
tree79381b5b49eb56f615e891ae148bb4dddb51de83 /bson/bson.h
parent462feb5a9fc4388121347e2557c9f30cefe2c222 (diff)
downloadmongo-a38bc950bd720b6b299c0b8e2dd0e319f19daac7.tar.gz
compile (windows)
Diffstat (limited to 'bson/bson.h')
-rw-r--r--bson/bson.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bson/bson.h b/bson/bson.h
index 0a2e98cf760..6426f97d6a1 100644
--- a/bson/bson.h
+++ b/bson/bson.h
@@ -35,6 +35,13 @@
#pragma once
+#if defined(MONGO_EXPOSE_MACROS)
+#error this header is for client programs, not the mongo database itself. include jsobj.h instead.
+/* because we define simplistic assert helpers here that don't pull in a bunch of util -- so that
+ BSON can be used header only.
+ */
+#endif
+
#include <iostream>
#include <sstream>
#include <boost/utility.hpp>