Add BRO_DEPRECATED macro.

This commit is contained in:
Jon Siwek 2017-12-12 11:34:49 -06:00
parent 1e4964de77
commit 054c4a67c4

View file

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