Hideaki Tai / msgpack-embedded

Dependents:   hello_message_pack

Revision:
0:3f9dbf1e2cb0
diff -r 000000000000 -r 3f9dbf1e2cb0 include/msgpack/adaptor/define.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/msgpack/adaptor/define.hpp	Sat Feb 13 01:53:11 2016 +0000
@@ -0,0 +1,31 @@
+//
+// MessagePack for C++ static resolution routine
+//
+// Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
+//
+//    Distributed under the Boost Software License, Version 1.0.
+//    (See accompanying file LICENSE_1_0.txt or copy at
+//    http://www.boost.org/LICENSE_1_0.txt)
+//
+#ifndef MSGPACK_DEFINE_HPP
+#define MSGPACK_DEFINE_HPP
+
+#include "msgpack/cpp_config.hpp"
+
+#if defined(MSGPACK_USE_CPP03)
+#include "detail/cpp03_define_array.hpp"
+#include "detail/cpp03_define_map.hpp"
+#else  // MSGPACK_USE_CPP03
+#include "detail/cpp11_define_array.hpp"
+#include "detail/cpp11_define_map.hpp"
+#endif // MSGPACK_USE_CPP03
+
+#if defined(MSGPACK_USE_DEFINE_MAP)
+#define MSGPACK_DEFINE MSGPACK_DEFINE_MAP
+#define MSGPACK_BASE MSGPACK_BASE_MAP
+#else  // defined(MSGPACK_USE_DEFINE_MAP)
+#define MSGPACK_DEFINE MSGPACK_DEFINE_ARRAY
+#define MSGPACK_BASE MSGPACK_BASE_ARRAY
+#endif // defined(MSGPACK_USE_DEFINE_MAP)
+
+#endif // MSGPACK_DEFINE_HPP