From: Richard Kreckel Date: Mon, 3 Jul 2000 23:43:17 +0000 (+0000) Subject: - Patches needed for cygwin. X-Git-Tag: release_0-6-3~8 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=b7c15cf3731d4b3d4f9bcd7b95b42982e91a69bd;ds=sidebyside - Patches needed for cygwin. --- diff --git a/ginac/utils.h b/ginac/utils.h index 7018bc95..13fa2c8b 100644 --- a/ginac/utils.h +++ b/ginac/utils.h @@ -45,7 +45,10 @@ string ToString(const T & t) * signal that ordinary Taylor expansion is safe. */ class do_taylor {}; +// cygwin defines a macro log2, causing confusion +#ifndef log2 unsigned log2(unsigned n); +#endif int compare_pointers(const void * a, const void * b); diff --git a/ginsh/Makefile.am b/ginsh/Makefile.am index d16cd4d3..29ff9d40 100644 --- a/ginsh/Makefile.am +++ b/ginsh/Makefile.am @@ -10,10 +10,10 @@ YFLAGS = -d EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed # files created by sed scripts -ginsh_fcn_help.c: ginsh.1 ginsh_fcn_help.sed - sed -n -f ginsh_fcn_help.sed <$< >$@ +ginsh_fcn_help.c: ginsh.1 $(srcdir)/ginsh_fcn_help.sed + sed -n -f $(srcdir)/ginsh_fcn_help.sed <$< >$@ -ginsh_op_help.c: ginsh.1 ginsh_op_help.sed - sed -n -f ginsh_op_help.sed <$< >$@ +ginsh_op_help.c: ginsh.1 $(srcdir)/ginsh_op_help.sed + sed -n -f $(srcdir)/ginsh_op_help.sed <$< >$@ ginsh_parser.o: ginsh_fcn_help.c ginsh_op_help.c