Win32 build: libguile needs minor tweaking for MSVC compatibility.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18774 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2010-03-01 18:45:11 +00:00
parent 49658f362a
commit 961539fc7c

11
packaging/win32/install.sh Executable file → Normal file
View File

@@ -381,6 +381,17 @@ function inst_guile() {
qpopd
guile -c '(use-modules (srfi srfi-39))' &&
guile -c "(use-modules (ice-9 slib)) (require 'printf)" || die "guile not installed correctly"
# If this libguile is used from MSVC compiler, we must
# deactivate some macros of scmconfig.h again.
SCMCONFIG_H=$_GUILE_UDIR/include/libguile/scmconfig.h
cat >> ${SCMCONFIG_H} <<EOF
#ifdef _MSC_VER
# undef HAVE_STDINT_H
# undef HAVE_INTTYPES_H
#endif
EOF
rm -rf ${TMP_UDIR}/guile-*
fi
if [ "$CROSS_COMPILE" = "yes" ]; then