version.h 900 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. MSGPACK_DLLEXPORT
  16. const char* msgpack_version(void);
  17. MSGPACK_DLLEXPORT
  18. int msgpack_version_major(void);
  19. MSGPACK_DLLEXPORT
  20. int msgpack_version_minor(void);
  21. MSGPACK_DLLEXPORT
  22. int msgpack_version_revision(void);
  23. #include "version_master.h"
  24. #define MSGPACK_STR(v) #v
  25. #define MSGPACK_VERSION_I(maj, min, rev) MSGPACK_STR(maj) "." MSGPACK_STR(min) "." MSGPACK_STR(rev)
  26. #define MSGPACK_VERSION MSGPACK_VERSION_I(MSGPACK_VERSION_MAJOR, MSGPACK_VERSION_MINOR, MSGPACK_VERSION_REVISION)
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif /* msgpack/version.h */