Define __attribute__ and __deprecated__ on MSWin

This commit is contained in:
Piotr Krysik 2018-03-04 22:09:23 +01:00
parent 86c9164000
commit b1e67fe527
1 changed files with 9 additions and 0 deletions

View File

@ -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>