1/* 2 * MessagePack for C version information 3 * 4 * Copyright (C) 2008-2009 FURUHASHI Sadayuki 5 * 6 * Distributed under the Boost Software License, Version 1.0. 7 * (See accompanying file LICENSE_1_0.txt or copy at 8 * http://www.boost.org/LICENSE_1_0.txt) 9 */ 10#ifndef MSGPACK_VERSION_H 11#define MSGPACK_VERSION_H 12 13#ifdef __cplusplus 14extern "C" { 15#endif 16 17MSGPACK_DLLEXPORT 18const char* msgpack_version(void); 19MSGPACK_DLLEXPORT 20int msgpack_version_major(void); 21MSGPACK_DLLEXPORT 22int msgpack_version_minor(void); 23MSGPACK_DLLEXPORT 24int msgpack_version_revision(void); 25 26#include "version_master.h" 27 28#define MSGPACK_STR(v) #v 29#define MSGPACK_VERSION_I(maj, min, rev) MSGPACK_STR(maj) "." MSGPACK_STR(min) "." MSGPACK_STR(rev) 30 31#define MSGPACK_VERSION MSGPACK_VERSION_I(MSGPACK_VERSION_MAJOR, MSGPACK_VERSION_MINOR, MSGPACK_VERSION_REVISION) 32 33#ifdef __cplusplus 34} 35#endif 36 37#endif /* msgpack/version.h */ 38 39