blob: 3dc404b5cc47c03da4c0db617e9ec2588fd9cfac [file] [log] [blame]
Christopher Wileye8679812015-07-01 13:36:18 -07001# Sed script to postprocess config.h into event-config.h.
2
31i\
4/* event2/event-config.h\
5 *\
6 * This file was generated by autoconf when libevent was built, and post-\
7 * processed by Libevent so that its macros would have a uniform prefix.\
8 *\
9 * DO NOT EDIT THIS FILE.\
10 *\
11 * Do not rely on macros in this file existing in later versions.\
12 */\
13\
Narayan Kamathfc74cb42017-09-13 12:53:52 +010014#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_\
15#define EVENT2_EVENT_CONFIG_H_INCLUDED_\
Christopher Wileye8679812015-07-01 13:36:18 -070016
17$a\
18\
19#endif /* event2/event-config.h */
20
Haibo Huangb2279672019-05-31 16:12:39 -070021/#\( *\)undef STDC_HEADERS\>/b
22/#\( *\)define STDC_HEADERS\>/b
23
24# Only rewrite symbols starting with capitals
25s/#\( *\)define \([A-Z]\)/#\1define EVENT__\2/
26s/#\( *\)undef \([A-Z]\)/#\1undef EVENT__\2/
27s/#\( *\)if\(n*\)def \([A-Z]\)/#\1if\2def EVENT__\2/