Make the generated event-config.h use correct include guards

This commit is contained in:
Nick Mathewson 2012-02-29 15:07:31 -05:00
parent 5c0f7e06ce
commit 639383a454

View File

@ -173,8 +173,8 @@ BUILT_SOURCES = ./include/event2/event-config.h
echo ' *' >> $@ echo ' *' >> $@
echo ' * Do not rely on macros in this file existing in later versions.'>> $@ echo ' * Do not rely on macros in this file existing in later versions.'>> $@
echo ' */' >> $@ echo ' */' >> $@
echo '#ifndef _EVENT2_EVENT_CONFIG_H_' >> $@ echo '#ifndef EVENT2_EVENT_CONFIG_H_INCLUDED_' >> $@
echo '#define _EVENT2_EVENT_CONFIG_H_' >> $@ echo '#define EVENT2_EVENT_CONFIG_H_INCLUDED_' >> $@
sed -e 's/#define /#define EVENT__/' \ sed -e 's/#define /#define EVENT__/' \
-e 's/#undef /#undef EVENT__/' \ -e 's/#undef /#undef EVENT__/' \