mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58: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
|
#ifndef util_h
|
||||||
#define 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
|
// Expose C99 functionality from inttypes.h, which would otherwise not be
|
||||||
// available in C++.
|
// available in C++.
|
||||||
#ifndef __STDC_FORMAT_MACROS
|
#ifndef __STDC_FORMAT_MACROS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue