Preproc defines in evhttp_compat.h to protect against double inclusion

This commit is contained in:
ejurgensen 2014-08-15 22:53:47 +02:00
parent b38dea0221
commit b0807b168e

View File

@ -1,3 +1,6 @@
#ifndef _EVHTTP_COMPAT_H_
#define _EVHTTP_COMPAT_H_
#include "evhttp.h" #include "evhttp.h"
/* This file should only be included if using libevent 1 /* This file should only be included if using libevent 1
@ -24,4 +27,4 @@ evhttp_connection_base_new(struct event_base *base, void *ignore, const char *ad
void void
evhttp_request_set_header_cb(struct evhttp_request *req, int (*cb)(struct evhttp_request *, void *)); evhttp_request_set_header_cb(struct evhttp_request *req, int (*cb)(struct evhttp_request *, void *));
#endif /* _EVHTTP_COMPAT_H_ */