* make cegcc aware of the _WIN32 macro

* fix warning


SVN revision: 34078
This commit is contained in:
doursse 2008-03-22 08:31:38 +00:00 committed by doursse
parent 45e9085e13
commit ee23c4b248
3 changed files with 8 additions and 2 deletions

View File

@ -33,6 +33,7 @@ AC_FUNC_ALLOCA
AC_CHECK_FUNCS(gettimeofday)
WIN32_CFLAGS=""
create_shared_lib=""
case "$host_os" in
mingw|mingw32*|cegcc)
@ -40,9 +41,13 @@ case "$host_os" in
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
dnl needed for correct definition of EAPI
AC_DEFINE(EFL_EMBRYO_BUILD, 1, [Define to mention that embryo is built])
if test "x$host_os" = "xcegcc" ; then
WIN32_CFLAGS="-mwin32"
fi
create_shared_lib="-no-undefined"
;;
esac
AC_SUBST(WIN32_CFLAGS)
AC_SUBST(create_shared_lib)
AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))

View File

@ -9,7 +9,8 @@ AM_CPPFLAGS = \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
@EVIL_CFLAGS@
@EVIL_CFLAGS@ \
@WIN32_CFLAGS@
bin_PROGRAMS = embryo_cc

View File

@ -319,7 +319,7 @@ sc_compile(int argc, char *argv[])
tmpdir = getenv("TMPDIR");
if (!tmpdir) tmpdir = "/tmp";
#else
tmpdir = evil_tmpdir_get();
tmpdir = (char *)evil_tmpdir_get();
#endif /* ! HAVE_EVIL */
snprintf(outfname, _MAX_PATH, "%s/embryo_cc.asm-tmp-XXXXXX", tmpdir);