diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2018-03-04 22:09:23 +0100 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2018-03-04 22:09:23 +0100 |
commit | b1e67fe527db0ec33f1a25318448123c726eed2a (patch) | |
tree | d512ac0ba31489d18ac89b26f410ff0f2c72ba23 /lib | |
parent | 86c916400092eeba0686abe5e97dd150828c6b8b (diff) |
Define __attribute__ and __deprecated__ on MSWin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding/osmocom/core/utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/decoding/osmocom/core/utils.h b/lib/decoding/osmocom/core/utils.h index 1322860..e142d97 100644 --- a/lib/decoding/osmocom/core/utils.h +++ b/lib/decoding/osmocom/core/utils.h @@ -2,6 +2,15 @@ #include <stdbool.h> +#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__) +# define __WINDOWS__ +#endif + +#ifdef __WINDOWS__ +# define __attribute__(_arg_) +# define __deprecated__ +#endif + //#include <osmocom/core/backtrace.h> //#include <osmocom/core/talloc.h> |