+2006-12-22 Bruno Haible <bruno@clisp.org>
+
+ Test for CC=c++ at configure-time.
+ * m4/moo.m4: New file.
+ * build-aux/moopp: Emit test of IS_CPLUSPLUS instead of __cplusplus.
+ * modules/moo (Files): Add m4/moo.m4.
+ (configure.ac): Set to gl_MOO.
+ * Makefile.am (EXTRA_DIST): Add m4/moo.m4.
+
2006-12-23 Bruno Haible <bruno@clisp.org>
Support platforms with neither terminfo nor termcap functions, like
echo "/* ${main_classname}_t is defined as a pointer to struct ${main_repclassalias}."
echo " In C++ mode, we use a smart pointer class."
echo " In C mode, we have no other choice than a typedef to the root class type. */"
- echo "#ifdef __cplusplus"
+ echo "#if IS_CPLUSPLUS"
echo "struct ${main_classname}_t"
echo "{"
echo "private:"
else
rootclassname="$main_classname"
fi
- echo "#ifndef __cplusplus"
+ echo "#if !IS_CPLUSPLUS"
echo "#define ${main_classname}_representation any_${rootclassname}_representation"
echo "#endif"
echo "#include \"${main_classname}.priv.h\""