Skip to content

Commit

Permalink
Add version.h (seems to be needed for MacOS?)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
  • Loading branch information
ajlennon committed Jul 20, 2024
1 parent 9ae56a8 commit 26bb9e3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#define TWOVOIP_MAJOR 1
#define TWOVOIP_MINOR 1
#define TWOVOIP_PATCH 0
#define TWOVOIP_VERSION ((TWOVOIP_MAJOR << (8 * 3)) + (TWOVOIP_MINOR << (8 * 2)) + (TWOVOIP_PATCH << (8 * 1)))

#define _TWOVOIP_VERSION_STR_TEXT(text) #text
#define _TWOVOIP_VERSION_STR(major, minor, patch) _TWOVOIP_VERSION_STR_TEXT(major) "." _TWOVOIP_VERSION_STR_TEXT(minor) "." _TWOVOIP_VERSION_STR_TEXT(patch)
#define TWOVOIP_VERSION_STR _TWOVOIP_VERSION_STR(TWOVOIP_MAJOR, TWOVOIP_MINOR, TWOVOIP_PATCH)

0 comments on commit 26bb9e3

Please sign in to comment.