Skip to content

Commit

Permalink
Define __attribute__ and __deprecated__ on MSWin
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrkrysik committed Mar 4, 2018
1 parent 86c9164 commit b1e67fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/decoding/osmocom/core/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit b1e67fe

Please sign in to comment.