tt_type_comp: use CppCmd definition
authorNina Didenko <nina.didenko@gmail.com>
Sun, 24 Nov 2019 07:42:05 +0000 (10:42 +0300)
committerJon Trulson <jon@radscan.com>
Sat, 30 Nov 2019 01:12:20 +0000 (18:12 -0700)
Hi.

This patch makes tt_type_comp respect CppCmd

Thanks!

cde/lib/tt/bin/tt_type_comp/Imakefile
cde/lib/tt/lib/tt_options.h

index 92179208f66057151b1e44855b99ba4055750cfa..624349297249b822eba95d687be989d959f7a6a6 100644 (file)
@@ -8,7 +8,9 @@ EXTRA_LOAD_FLAGS = ExtraLoadFlags $(UNSHARED_CXXLIB)
 
 #include "../../tooltalk.tmpl"
 
-DEFINES = 
+CPP_PROGRAM = CppCmd
+CPP_DEFINES = -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
+DEFINES = $(CPP_DEFINES)
 INCLUDES = $(TIRPCINC) -I../../lib -I../../slib
 
 DEPLIBS         = ../../slib/libstt.a TtClientDepLibs
index 4315daa8c2c4e81d9f779f57e7e195644f76e0b3..e23bb9e5a00ace70bc87f0b45ad34c3d08f824c2 100644 (file)
 
 #endif
 
+#ifdef CPP_PROGRAM
+# undef OPT_CPP_PATH
+# define OPT_CPP_PATH CPP_PROGRAM
+#endif
+
 #endif                         /* _TT_OPTIONS_H */