aboutsummaryrefslogtreecommitdiffstats
path: root/lib/decoding/osmocom/core
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2018-03-04 22:09:23 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2018-03-04 22:09:23 +0100
commitb1e67fe527db0ec33f1a25318448123c726eed2a (patch)
treed512ac0ba31489d18ac89b26f410ff0f2c72ba23 /lib/decoding/osmocom/core
parent86c916400092eeba0686abe5e97dd150828c6b8b (diff)
Define __attribute__ and __deprecated__ on MSWin
Diffstat (limited to 'lib/decoding/osmocom/core')
-rw-r--r--lib/decoding/osmocom/core/utils.h9
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>