summaryrefslogtreecommitdiff
path: root/event_rpcgen.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-28 19:41:48 +0000
committerNick Mathewson <nickm@torproject.org>2009-07-28 19:41:48 +0000
commita826a75800ce614a06ae53ddb95c54ccaf2f51d2 (patch)
tree3499a234c29ef9251804d301b4dec3f84fb67ed6 /event_rpcgen.py
parent5b5b880be7452eaf42d401f3ad54474ae60a9dbf (diff)
downloadlibevent-a826a75800ce614a06ae53ddb95c54ccaf2f51d2.tar.gz
Some tweaks to Brodie Thesfield's MSVC patch.
svn:r1386
Diffstat (limited to 'event_rpcgen.py')
-rwxr-xr-xevent_rpcgen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/event_rpcgen.py b/event_rpcgen.py
index 136d6a83..6b8f5fa9 100755
--- a/event_rpcgen.py
+++ b/event_rpcgen.py
@@ -1561,9 +1561,13 @@ class CCodeGenerator:
pre += ( '#include <stdlib.h>\n'
'#include <string.h>\n'
'#include <assert.h>\n'
+ '#include <event-config.h>\n'
'#include <event2/event.h>\n'
'#include <event2/buffer.h>\n'
'#include <event2/tag.h>\n\n'
+ '#ifdef _EVENT___func__\n'
+ '#define __func__ _EVENT___FUNC__\n'
+ '#endif\n\n'
)
for statement in cppdirect: