mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
Generate event-config.h using the correct macros.
The previous patch didn't change the sed script in Makefile.am, since that couldn't be done automatically.
This commit is contained in:
parent
68120d9b00
commit
f82c57e505
@ -176,10 +176,10 @@ BUILT_SOURCES = ./include/event2/event-config.h
|
|||||||
echo '#ifndef _EVENT2_EVENT_CONFIG_H_' >> $@
|
echo '#ifndef _EVENT2_EVENT_CONFIG_H_' >> $@
|
||||||
echo '#define _EVENT2_EVENT_CONFIG_H_' >> $@
|
echo '#define _EVENT2_EVENT_CONFIG_H_' >> $@
|
||||||
|
|
||||||
sed -e 's/#define /#define _EVENT_/' \
|
sed -e 's/#define /#define EVENT__/' \
|
||||||
-e 's/#undef /#undef _EVENT_/' \
|
-e 's/#undef /#undef EVENT__/' \
|
||||||
-e 's/# define /# define _EVENT_/' \
|
-e 's/# define /# define EVENT__/' \
|
||||||
-e 's/#ifndef /#ifndef _EVENT_/' < config.h >> $@
|
-e 's/#ifndef /#ifndef EVENT__/' < config.h >> $@
|
||||||
echo "#endif" >> $@
|
echo "#endif" >> $@
|
||||||
|
|
||||||
CORE_SRC = event.c evthread.c buffer.c \
|
CORE_SRC = event.c evthread.c buffer.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user