mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
tevent: Move definition of _DEPRECATED_ to the top of tevent.h
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
28ddcaf4d8
commit
e9f38f6e6d
@ -39,6 +39,15 @@
|
||||
#define __has_attribute(x) 0
|
||||
#endif
|
||||
|
||||
#ifdef TEVENT_DEPRECATED
|
||||
#ifndef _DEPRECATED_
|
||||
#if __has_attribute(deprecated) || (__GNUC__ >= 3)
|
||||
#define _DEPRECATED_ __attribute__ ((deprecated))
|
||||
#else
|
||||
#define _DEPRECATED_
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
struct tevent_context;
|
||||
struct tevent_ops;
|
||||
@ -2523,13 +2532,6 @@ void _tevent_threaded_schedule_immediate(struct tevent_threaded_context *tctx,
|
||||
#endif
|
||||
|
||||
#ifdef TEVENT_DEPRECATED
|
||||
#ifndef _DEPRECATED_
|
||||
#if __has_attribute(deprecated) || (__GNUC__ >= 3)
|
||||
#define _DEPRECATED_ __attribute__ ((deprecated))
|
||||
#else
|
||||
#define _DEPRECATED_
|
||||
#endif
|
||||
#endif
|
||||
void tevent_loop_allow_nesting(struct tevent_context *ev) _DEPRECATED_;
|
||||
void tevent_loop_set_nesting_hook(struct tevent_context *ev,
|
||||
tevent_nesting_hook hook,
|
||||
|
Loading…
Reference in New Issue
Block a user