diff options
author | Fernando Farfan <ffarfan@gmail.com> | 2015-05-16 18:22:04 -0600 |
---|---|---|
committer | Fernando Farfan <ffarfan@gmail.com> | 2015-06-05 10:07:21 -0600 |
commit | 898b120ea912b64a0254bbb89352e2c138d3c635 (patch) | |
tree | 84c441c118b893c9e6d17ef816aeb559eed28929 /endless | |
parent | 40e3e0c73d76102d23c223a6c22c8a44a6875955 (diff) |
Added macros for 0.4 availability
Added macros for 0.4 availability
(Philip & Fernando)
[endlessm/eos-sdk#3111]
Diffstat (limited to 'endless')
-rw-r--r-- | endless/eosversion.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/endless/eosversion.h b/endless/eosversion.h index 70e72a2..0e458c6 100644 --- a/endless/eosversion.h +++ b/endless/eosversion.h @@ -24,6 +24,7 @@ define EOS_SDK_VERSION_MIN_REQUIRED and EOS_SDK_VERSION_MAX_ALLOWED to one of these macros. */ #define EOS_SDK_VERSION_0_0 (G_ENCODE_VERSION (0, 0)) #define EOS_SDK_VERSION_0_2 (G_ENCODE_VERSION (0, 2)) +#define EOS_SDK_VERSION_0_4 (G_ENCODE_VERSION (0, 4)) #if (EOS_SDK_MINOR_VERSION == 99) #define EOS_SDK_VERSION_CUR_STABLE (G_ENCODE_VERSION (EOS_SDK_MAJOR_VERSION + 1, 0)) @@ -92,4 +93,18 @@ these macros. */ # define EOS_SDK_AVAILABLE_IN_0_2 #endif +#if EOS_SDK_VERSION_MIN_REQUIRED >= EOS_SDK_VERSION_0_4 +# define EOS_SDK_DEPRECATED_IN_0_4 EOS_SDK_DEPRECATED +# define EOS_SDK_DEPRECATED_IN_0_4_FOR(f) EOS_SDK_DEPRECATED_FOR(f) +#else +# define EOS_SDK_DEPRECATED_IN_0_4 +# define EOS_SDK_DEPRECATED_IN_0_4_FOR(f) +#endif + +#if EOS_SDK_VERSION_MAX_ALLOWED < EOS_SDK_VERSION_0_4 +# define EOS_SDK_AVAILABLE_IN_0_4 EOS_SDK_UNAVAILABLE(0, 4) +#else +# define EOS_SDK_AVAILABLE_IN_0_4 +#endif + #endif /* API_VERSION_H */ |