version.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  4. *
  5. * (c) ZeroTier, Inc.
  6. * https://www.zerotier.com/
  7. */
  8. #ifndef _ZT_VERSION_H
  9. #define _ZT_VERSION_H
  10. /**
  11. * Major version
  12. */
  13. #define ZEROTIER_ONE_VERSION_MAJOR 1
  14. /**
  15. * Minor version
  16. */
  17. #define ZEROTIER_ONE_VERSION_MINOR 16
  18. /**
  19. * Revision
  20. */
  21. #define ZEROTIER_ONE_VERSION_REVISION 0
  22. /**
  23. * Build version
  24. *
  25. * This starts at 0 for each major.minor.rev tuple and can be incremented
  26. * to force a minor update without an actual version number change. It's
  27. * not part of the actual release version number.
  28. */
  29. #define ZEROTIER_ONE_VERSION_BUILD 0
  30. #ifndef ZT_BUILD_ARCHITECTURE
  31. #define ZT_BUILD_ARCHITECTURE 0
  32. #endif
  33. #ifndef ZT_BUILD_PLATFORM
  34. #define ZT_BUILD_PLATFORM 0
  35. #endif
  36. #define _ZT_STR_HELPER(x) #x
  37. #define _ZT_STR(x) _ZT_STR_HELPER(x)
  38. #define ZEROTIER_ONE_VERSION_STR _ZT_STR(ZEROTIER_ONE_VERSION_MAJOR) "." _ZT_STR(ZEROTIER_ONE_VERSION_MINOR) "." _ZT_STR(ZEROTIER_ONE_VERSION_REVISION)
  39. #define ZEROTIER_ONE_NAME "zerotier-one"
  40. #endif