mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Add BRO_DEPRECATED macro.
This commit is contained in:
parent
1e4964de77
commit
054c4a67c4
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,15 @@
|
|||
#ifndef util_h
|
||||
#define util_h
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define BRO_DEPRECATED(msg) __attribute__ ((deprecated(msg)))
|
||||
#elif defined(_MSC_VER)
|
||||
#define BRO_DEPRECATED(msg) __declspec(deprecated(msg)) func
|
||||
#else
|
||||
#pragma message("Warning: BRO_DEPRECATED macro not implemented")
|
||||
#define BRO_DEPRECATED(msg)
|
||||
#endif
|
||||
|
||||
// Expose C99 functionality from inttypes.h, which would otherwise not be
|
||||
// available in C++.
|
||||
#ifndef __STDC_FORMAT_MACROS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue