exile.h: Move definitions to new file exile.c
Especially with exile_launch(), we will be included from more than one translation unit. Thus, ODR becomes a headache now. So move definitions to exile.c.
This commit is contained in:
parent
005851c645
commit
69829374c7
2
Makefile
2
Makefile
@ -10,7 +10,7 @@ clean:
|
|||||||
rm -f test testcpp
|
rm -f test testcpp
|
||||||
|
|
||||||
test: test.c exile.h
|
test: test.c exile.h
|
||||||
$(CC) test.c -g $(CFLAGS) -o test
|
$(CC) test.c exile.c -g $(CFLAGS) -o test
|
||||||
|
|
||||||
testcpp: test.cpp exile.h exile.hpp
|
testcpp: test.cpp exile.h exile.hpp
|
||||||
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
|
$(CXX) test.cpp -g $(CXXFLAGS) -o testcpp
|
||||||
|
Loading…
Reference in New Issue
Block a user