]> granicus.if.org Git - libevent/commit
Reduce windows header includes in our own headers.
authorNick Mathewson <nickm@torproject.org>
Wed, 3 Feb 2010 07:09:19 +0000 (02:09 -0500)
committerNick Mathewson <nickm@torproject.org>
Wed, 3 Feb 2010 07:09:19 +0000 (02:09 -0500)
commitda6135e356b4ff8489b7810682a70d5a70ac7197
treede6b1552fac16a87fd17068b9fbabd324fceb321
parent27c9a40f15701244bca209f05abc07792499dbb4
Reduce windows header includes in our own headers.

It turns out that absolutely everything that was including
windows.h was doing so needlessly; our headers don't need it,
so we should just include winsock2.h (since that's where
struct timeval is defined).

Pre-2.0 code will use the old headers, which include windows.h
for them, so we aren't breaking source compatibility with 1.4.

This solves the bug where we were leaving WIN32_LEAN_AND_MEAN
defined, in roughly the same way that buying an automobile
solves the question of what to give your coachman for boxing
day.
evdns.c
include/event2/bufferevent.h
include/event2/bufferevent_struct.h
include/event2/event.h
include/event2/event_compat.h
include/event2/event_struct.h
include/event2/http.h
include/event2/http_compat.h
include/event2/tag.h
include/event2/util.h