Mercurial > mxe-octave
view src/msvc-libgpg_error-1.patch @ 4449:1933a9113e65
of-*: add octave as a dependancy to the of packages is binary enable is set (Bug #46235)
* src/of-actuarial.mk, src/of-communications.mk, src/of-control.mk, src/of-data-smoothing.mk,
src/of-database.mk, src/of-dataframe.mk, src/of-dicom.mk, src/of-financial.mk, src/of-fits.mk,
src/of-fl-core.mk, src/of-fuzzy-logic-toolkit.mk, src/of-ga.mk, src/of-general.mk, src/of-generate_html.mk,
src/of-geometry.mk, src/of-gsl.mk, src/of-image.mk, src/of-instrument-control.mk, src/of-interval.mk,
src/of-io.mk, src/of-linear-algebra.mk, src/of-lssa.mk, src/of-ltfat.mk, src/of-mapping.mk,
src/of-miscellaneous.mk, src/of-nan.mk, src/of-netcdf.mk, src/of-nurbs.mk, src/of-ocs.mk, src/of-octcdf.mk,
src/of-odepkg.mk, src/of-optim.mk, src/of-quaternion.mk, src/of-queueing.mk, src/of-signal.mk, src/of-sockets.mk,
src/of-sparsersb.mk, src/of-specfun.mk, src/of-splines.mk, src/of-statistics.mk, src/of-stk.mk,
src/of-strings.mk, src/of-struct.mk, src/of-tisean.mk, src/of-tsa.mk, src/of-video.mk, src/of-windows.mk,
src/of-zenity.mk, src/of-zeromq.mk: add $(PKG)_DEPS += $(OCTAVE_TARGET) if ENABLE_BINARY_PACKAGES = yes
author | John D |
---|---|
date | Mon, 14 Aug 2017 09:12:34 -0400 |
parents | 1f1e0dc9a135 |
children |
line wrap: on
line source
diff -ur libgpg-error-1.11-orig/src/Makefile.in libgpg-error-1.11/src/Makefile.in --- libgpg-error-1.11-orig/src/Makefile.in 2013-02-25 04:27:23 -0500 +++ libgpg-error-1.11/src/Makefile.in 2013-06-23 17:11:24 -0400 @@ -999,7 +999,7 @@ gpg-error.def: Makefile gpg-error.def.in cat $(srcdir)/gpg-error.def.in >_$@.h $(CPP) $(DEFAULT_INCLUDES) $(INCLUDES) $(extra_cppflags) _$@.h | \ - grep -v '^#' >$@ + grep -v '^#' | sed -e '/^$$/d' -e 's/^ *\([^ ]*\).*/\1/' >$@ -rm _$@.h # It is correct to use $(CC_FOR_BUILD) here. We want to run the diff -ur libgpg-error-1.11-orig/src/gpg-error.c libgpg-error-1.11/src/gpg-error.c --- libgpg-error-1.11-orig/src/gpg-error.c 2010-12-23 11:56:07 -0500 +++ libgpg-error-1.11/src/gpg-error.c 2013-06-23 17:11:56 -0400 @@ -51,6 +51,11 @@ #include <gpg-error.h> +#ifdef _MSC_VER +# define strcasecmp stricmp +# define strncasecmp strnicmp +#endif + #if HAVE_W32_SYSTEM /* The implementation follows below. */ diff -ur libgpg-error-1.11-orig/src/init.c libgpg-error-1.11/src/init.c --- libgpg-error-1.11-orig/src/init.c 2010-12-23 11:56:07 -0500 +++ libgpg-error-1.11/src/init.c 2013-06-23 17:11:32 -0400 @@ -42,6 +42,10 @@ # endif #endif +#ifdef _MSC_VER +# define snprintf _snprintf +#endif + /* Locale directory support. */ diff -ur libgpg-error-1.11-orig/src/strerror.c libgpg-error-1.11/src/strerror.c --- libgpg-error-1.11-orig/src/strerror.c 2010-12-23 11:56:07 -0500 +++ libgpg-error-1.11/src/strerror.c 2013-06-23 17:11:42 -0400 @@ -32,6 +32,10 @@ #include "gettext.h" #include "err-codes.h" +#ifdef _MSC_VER +# define snprintf _snprintf +#endif + /* Return a pointer to a string containing a description of the error code in the error value ERR. This function is not thread-safe. */ const char *