Mercurial > mxe-octave
view src/libgomp-1-fixes.patch @ 6510:4b8764444acb
Create common github call define and start using it
* Makefile.in: add GITHUB_PKG_UPDATE
* src/blas_switch.mk, src/double-conversion.mk, src/libffi.mk,
src/libgeotiff.mk, src/libmodbus.mk, src/libproxy.mk,
src/librsvg.mk, src/libsndfile.mk, src/libsodium.mk,
src/libvpx.mk, src/netcdf.mk, src/of-statistics.mk,
src/openblas.mk, src/opencv.mk, src/openjpeg.mk,
src/openlibm.mk, src/paho-mqtt-c.mk, src/pcre2.mk,
src/portaudio.mk, src/rapidjson.mk, src/rtmidi.mk,
src/suitesparse.mk, src/sundials-ida.mk, src/wt.mk,
src/wxwidgets.mk, src/yasm.mk, src/zeromq.mk
: call GITHUB_PKG_UPDATE in update
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 08 Nov 2022 09:37:16 -0500 |
parents | c366dab2350c |
children |
line wrap: on
line source
diff -ur gcc-10.2.0.orig/libgomp/libgomp.h gcc-10.2.0/libgomp/libgomp.h --- gcc-10.2.0.orig/libgomp/libgomp.h 2021-05-12 11:35:02.852122961 -0400 +++ gcc-10.2.0/libgomp/libgomp.h 2021-05-12 11:37:05.593912873 -0400 @@ -69,6 +69,14 @@ # endif #endif +#include <stdio.h> +#include <stdio.h> +#ifdef __MINGW_PRINTF_FORMAT +#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT +#else +#define PRINTF_FORMAT printf +#endif + #ifdef HAVE_ATTRIBUTE_VISIBILITY # pragma GCC visibility push(hidden) #endif @@ -173,7 +181,7 @@ extern void gomp_vdebug (int, const char *, va_list); extern void gomp_debug (int, const char *, ...) - __attribute__ ((format (printf, 2, 3))); + __attribute__ ((format (PRINTF_FORMAT, 2, 3))); #define gomp_vdebug(KIND, FMT, VALIST) \ do { \ if (__builtin_expect (gomp_debug_var, 0)) \ @@ -186,11 +194,11 @@ } while (0) extern void gomp_verror (const char *, va_list); extern void gomp_error (const char *, ...) - __attribute__ ((format (printf, 1, 2))); + __attribute__ ((format (PRINTF_FORMAT, 1, 2))); extern void gomp_vfatal (const char *, va_list) __attribute__ ((noreturn)); extern void gomp_fatal (const char *, ...) - __attribute__ ((noreturn, format (printf, 1, 2))); + __attribute__ ((noreturn, format (PRINTF_FORMAT, 1, 2))); struct gomp_task; struct gomp_taskgroup;