Skip to content

Commit 8679b2d

Browse files
committed
Rename config.h and HAVE_CONFIG_H
1 parent 4700e91 commit 8679b2d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎Makefile.am‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ EXTRA_PROGRAMS = CppUTestExtTests
1010
lib_LIBRARIES = lib/libCppUTest.a
1111
check_PROGRAMS = $(CPPUTEST_TESTS)
1212

13+
# Change autoconf's hard-coded (and collision susceptible) HAVE_CONFIG_H macro.
14+
DEFS = $(filter-out -DHAVE_CONFIG_H,@DEFS@) -DCPPUTEST_HAVE_GENERATED_CONFIG_H
15+
1316
if INCLUDE_CPPUTEST_EXT
1417
lib_LIBRARIES+= lib/libCppUTestExt.a
1518
check_PROGRAMS += $(CPPUTESTEXT_TESTS)

‎include/CppUTest/CppUTestGeneratedConfig.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
*/
4343

44-
#ifdef HAVE_CONFIG_H
44+
#ifdef CPPUTEST_HAVE_GENERATED_CONFIG_H
4545
#include "generated/CppUTestGeneratedConfig.h"
4646
#endif
4747

0 commit comments

Comments
 (0)