This file is part of mingw-cross-env. See doc/index.html for further information. --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -57,8 +57,8 @@ gen_scmconfig_SOURCES = gen-scmconfig.c gen-scmconfig.$(OBJEXT): gen-scmconfig.c $(AM_V_GEN) \ if [ "$(cross_compiling)" = "yes" ]; then \ - $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) \ + $(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) \ + -DBUILDING_LIBGUILE=1 -I$(top_srcdir) -I$(top_builddir) \ -c -o $@ $<; \ else \ $(COMPILE) -c -o $@ $<; \ --- a/libguile/gen-scmconfig.c +++ b/libguile/gen-scmconfig.c @@ -123,7 +123,6 @@ #include #include -#include #define pf printf @@ -143,6 +142,7 @@ main (int argc, char *argv[]) pf ("#include \n"); if (SCM_I_GSC_NEEDS_INTTYPES_H) pf ("#include \n"); + pf ("#include \n"); #ifdef HAVE_LIMITS_H pf ("#include \n"); @@ -379,11 +379,9 @@ main (int argc, char *argv[]) pf ("\n"); pf ("/* Constants from uniconv.h. */\n"); - pf ("#define SCM_ICONVEH_ERROR %d\n", (int) iconveh_error); - pf ("#define SCM_ICONVEH_QUESTION_MARK %d\n", - (int) iconveh_question_mark); - pf ("#define SCM_ICONVEH_ESCAPE_SEQUENCE %d\n", - (int) iconveh_escape_sequence); + pf ("#define SCM_ICONVEH_ERROR ((int) iconveh_error)\n"); + pf ("#define SCM_ICONVEH_QUESTION_MARK ((int) iconveh_question_mark)\n"); + pf ("#define SCM_ICONVEH_ESCAPE_SEQUENCE ((int) iconveh_escape_sequence)\n"); printf ("#endif\n");