-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sam Chen
authored
May 19, 2020
1 parent
d17642d
commit c644b77
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,8 @@ cc_library( | |
name = "stdint", | ||
hdrs = ["stdint.h"], | ||
) | ||
|
||
cc_library( | ||
name = "version", | ||
hdrs = ["version.h"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 IOTA Stiftung | ||
* https://github.com/iotaledger/iota_common | ||
* | ||
* Refer to the LICENSE file for licensing information | ||
*/ | ||
|
||
#ifndef __COMMON_VERSION_H__ | ||
#define __COMMON_VERSION_H__ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define IOTA_COMMON_VERSION_MAJOR 1 | ||
#define IOTA_COMMON_VERSION_MINOR 1 | ||
#define IOTA_COMMON_VERSION_MICRO 0 | ||
#define IOTA_COMMON_VERSION_SPECIAL "beta" | ||
|
||
#define VER_STR0(s) #s | ||
#define VER_STR(s) VER_STR0(s) | ||
|
||
#define IOTA_COMMON_VERSION \ | ||
VER_STR(IOTA_COMMON_VERSION_MAJOR) \ | ||
"." VER_STR(IOTA_COMMON_VERSION_MINOR) "." VER_STR(IOTA_COMMON_VERSION_MICRO) "-" IOTA_COMMON_VERSION_SPECIAL | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // __COMMON_VERSION_H__ |