mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Remove a needless include of rpc_compat.h
Nothing in evrpc.c was using rpc_compat.h, so it's best to take it out, especially since it polluted our build process with GCC variadic macros. While we're at it, this patch puts an extra restriction on when the variadic macros in rpc_compat.h are defined. Not only must GCC be the compiler, but GCC must not be running in -ansi mode.
This commit is contained in:
parent
5c7a7bca4c
commit
70a4a3ef14
1
evrpc.c
1
evrpc.c
@ -56,7 +56,6 @@
|
||||
#include "event2/event_struct.h"
|
||||
#include "event2/rpc.h"
|
||||
#include "event2/rpc_struct.h"
|
||||
#include "event2/rpc_compat.h"
|
||||
#include "evrpc-internal.h"
|
||||
#include "event2/http.h"
|
||||
#include "event2/buffer.h"
|
||||
|
@ -39,7 +39,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
/** backwards compatible accessors that work only with gcc */
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||||
|
||||
#undef EVTAG_ASSIGN
|
||||
#undef EVTAG_GET
|
||||
|
Loading…
x
Reference in New Issue
Block a user