summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/system/test/single_instance_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/system/test/single_instance_2.cpp')
-rw-r--r--src/boost/libs/system/test/single_instance_2.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/boost/libs/system/test/single_instance_2.cpp b/src/boost/libs/system/test/single_instance_2.cpp
new file mode 100644
index 000000000..dba74a75f
--- /dev/null
+++ b/src/boost/libs/system/test/single_instance_2.cpp
@@ -0,0 +1,29 @@
+
+// Copyright 2018 Peter Dimov.
+// Distributed under the Boost Software License, Version 1.0.
+
+#include <boost/config.hpp>
+
+#if defined(SINGLE_INSTANCE_DYN_LINK)
+# define EXPORT BOOST_SYMBOL_EXPORT
+#else
+# define EXPORT
+#endif
+
+#include <boost/system/error_code.hpp>
+using namespace boost::system;
+
+namespace lib2
+{
+
+EXPORT error_code get_system_code()
+{
+ return error_code( 0, system_category() );
+}
+
+EXPORT error_code get_generic_code()
+{
+ return error_code( 0, generic_category() );
+}
+
+} // namespace lib2