diff options
| author | David Bremner <david@tethera.net> | 2015-06-07 17:01:54 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2015-08-04 09:11:17 +0200 |
| commit | 7e2d0ef10588b37922a6b48ca18005ce51bc0669 (patch) | |
| tree | 5e1b376904ff568ac3193c4dc0c17e1afa933d36 /lib | |
| parent | e6ad3a5dd4ca7a09a4760c4eb6721217cc906aaa (diff) | |
lib: define NOTMUCH_DEPRECATED macro, document its use.
This has been tested with gcc and clang.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/notmuch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index c8edc84d..9b5046b4 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -59,6 +59,8 @@ NOTMUCH_BEGIN_DECLS #define LIBNOTMUCH_MINOR_VERSION 2 #define LIBNOTMUCH_MICRO_VERSION 0 +#define NOTMUCH_DEPRECATED(major,minor) \ + __attribute__ ((deprecated ("function deprecated as of libnotmuch " #major "." #minor))) #endif /* __DOXYGEN__ */ /** |
