summaryrefslogtreecommitdiff
path: root/libs/interprocess/test/mapped_file_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/interprocess/test/mapped_file_test.cpp')
-rw-r--r--libs/interprocess/test/mapped_file_test.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/interprocess/test/mapped_file_test.cpp b/libs/interprocess/test/mapped_file_test.cpp
index ed3257a12..9d19977aa 100644
--- a/libs/interprocess/test/mapped_file_test.cpp
+++ b/libs/interprocess/test/mapped_file_test.cpp
@@ -7,6 +7,7 @@
// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////
+#if defined(BOOST_INTERPROCESS_MAPPED_FILES)
#include <boost/interprocess/detail/config_begin.hpp>
#include <boost/interprocess/allocators/allocator.hpp>
@@ -88,3 +89,12 @@ int main ()
}
#include <boost/interprocess/detail/config_end.hpp>
+
+#else //#if !defined(BOOST_INTERPROCESS_MAPPED_FILES)
+
+int main()
+{
+ return 0;
+}
+
+#endif//#if !defined(BOOST_INTERPROCESS_MAPPED_FILES)