diff options
Diffstat (limited to 'libs/interprocess/example/doc_managed_mapped_file.cpp')
-rw-r--r-- | libs/interprocess/example/doc_managed_mapped_file.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/interprocess/example/doc_managed_mapped_file.cpp b/libs/interprocess/example/doc_managed_mapped_file.cpp index 723fb3aba..2b59626f4 100644 --- a/libs/interprocess/example/doc_managed_mapped_file.cpp +++ b/libs/interprocess/example/doc_managed_mapped_file.cpp @@ -7,6 +7,8 @@ // 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/detail/workaround.hpp> @@ -106,3 +108,10 @@ 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) |