version.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c)2019 ZeroTier, Inc.
  3. *
  4. * Use of this software is governed by the Business Source License included
  5. * in the LICENSE.TXT file in the project's root directory.
  6. *
  7. * Change Date: 2026-01-01
  8. *
  9. * On the date above, in accordance with the Business Source License, use
  10. * of this software will be governed by version 2.0 of the Apache License.
  11. */
  12. /****/
  13. #ifndef _ZT_VERSION_H
  14. #define _ZT_VERSION_H
  15. /**
  16. * Major version
  17. */
  18. #define ZEROTIER_ONE_VERSION_MAJOR 1
  19. /**
  20. * Minor version
  21. */
  22. #define ZEROTIER_ONE_VERSION_MINOR 15
  23. /**
  24. * Revision
  25. */
  26. #define ZEROTIER_ONE_VERSION_REVISION 3
  27. /**
  28. * Build version
  29. *
  30. * This starts at 0 for each major.minor.rev tuple and can be incremented
  31. * to force a minor update without an actual version number change. It's
  32. * not part of the actual release version number.
  33. */
  34. #define ZEROTIER_ONE_VERSION_BUILD 0
  35. #ifndef ZT_BUILD_ARCHITECTURE
  36. #define ZT_BUILD_ARCHITECTURE 0
  37. #endif
  38. #ifndef ZT_BUILD_PLATFORM
  39. #define ZT_BUILD_PLATFORM 0
  40. #endif
  41. #define _ZT_STR_HELPER(x) #x
  42. #define _ZT_STR(x) _ZT_STR_HELPER(x)
  43. #define ZEROTIER_ONE_VERSION_STR _ZT_STR(ZEROTIER_ONE_VERSION_MAJOR) "." _ZT_STR(ZEROTIER_ONE_VERSION_MINOR) "." _ZT_STR(ZEROTIER_ONE_VERSION_REVISION)
  44. #define ZEROTIER_ONE_NAME "zerotier-one"
  45. #endif