From 0501bb16a3daa62474c68ea183e1e213980cb308 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 18:01:14 +0200 Subject: [PATCH 01/16] global GNU_SOURCE Signed-off-by: Pepper Gray --- CMakeLists.txt | 1 + external/musl/sincos.c | 1 - src/box64context.c | 1 - src/custommem.c | 1 - src/custommmap.c | 1 - src/dynarec/arm64/dynarec_arm64_functions.c | 1 - src/dynarec/dynarec_native_functions.c | 1 - src/dynarec/la64/dynarec_la64_functions.c | 1 - src/dynarec/ppc64le/dynarec_ppc64le_functions.c | 1 - src/dynarec/rv64/dynarec_rv64_functions.c | 1 - src/elfs/elfhacks.c | 1 - src/elfs/elfhash.c | 1 - src/elfs/elfhash32.c | 1 - src/elfs/elfloader.c | 1 - src/elfs/elfloader32.c | 1 - src/elfs/elfparser.c | 1 - src/elfs/elfparser32.c | 1 - src/emu/x64int3.c | 1 - src/emu/x64run.c | 1 - src/emu/x64run0f.c | 1 - src/emu/x64run66.c | 1 - src/emu/x64run660f.c | 1 - src/emu/x64run66d9.c | 1 - src/emu/x64run66dd.c | 1 - src/emu/x64run66f0.c | 1 - src/emu/x64run66f20f.c | 1 - src/emu/x64run66f30f.c | 1 - src/emu/x64run_private.c | 1 - src/emu/x64runavx.c | 1 - src/emu/x64runavx0f.c | 1 - src/emu/x64runavx0f38.c | 1 - src/emu/x64runavx660f.c | 1 - src/emu/x64runavx660f38.c | 1 - src/emu/x64runavx660f3a.c | 1 - src/emu/x64runavxf20f.c | 1 - src/emu/x64runavxf20f38.c | 1 - src/emu/x64runavxf20f3a.c | 1 - src/emu/x64runavxf30f.c | 1 - src/emu/x64runavxf30f38.c | 1 - src/emu/x64runavxf30f3a.c | 1 - src/emu/x64rund8.c | 1 - src/emu/x64rund9.c | 1 - src/emu/x64runda.c | 1 - src/emu/x64rundb.c | 1 - src/emu/x64rundc.c | 1 - src/emu/x64rundd.c | 1 - src/emu/x64runde.c | 1 - src/emu/x64rundf.c | 1 - src/emu/x64runf0.c | 1 - src/emu/x64runf20f.c | 1 - src/emu/x64runf30f.c | 1 - src/emu/x64syscall.c | 1 - src/emu/x64test.c | 1 - src/emu/x86int3.c | 1 - src/emu/x86syscall.c | 1 - src/emu/x86syscall_32.c | 1 - src/librarian/globalsymbols.c | 1 - src/librarian/globalsymbols32.c | 1 - src/librarian/library.c | 1 - src/libtools/libc_net32.c | 1 - src/libtools/libdl.c | 1 - src/libtools/obstack.c | 1 - src/libtools/signal32.c | 1 - src/libtools/signals.c | 1 - src/libtools/syscall_user_dispatch.c | 1 - src/libtools/threads.c | 1 - src/libtools/threads32.c | 1 - src/libtools/vulkanoverlay.c | 1 - src/mallochook.c | 1 - src/os/my_cpuid.c | 1 - src/os/os_linux.c | 1 - src/os/sysinfo.c | 1 - src/tools/bridge.c | 1 - src/tools/cpumask.c | 1 - src/tools/gtkclass.c | 1 - src/wrapped/wrappedalure.c | 1 - src/wrapped/wrappedalut.c | 1 - src/wrapped/wrappedandroidshmem.c | 1 - src/wrapped/wrappedandroidsupport.c | 1 - src/wrapped/wrappedanl.c | 1 - src/wrapped/wrappedatk.c | 1 - src/wrapped/wrappedatkbridge.c | 1 - src/wrapped/wrappedatomic.c | 1 - src/wrapped/wrappedatspi.c | 1 - src/wrapped/wrappedavahiclient.c | 1 - src/wrapped/wrappedavahicommon.c | 1 - src/wrapped/wrappedayatanaappindicator3.c | 1 - src/wrapped/wrappedayatanaido3.c | 1 - src/wrapped/wrappedayatanaindicator3.c | 1 - src/wrapped/wrappedbrotlidec.c | 1 - src/wrapped/wrappedbz2.c | 1 - src/wrapped/wrappedcairo.c | 1 - src/wrapped/wrappedcairogobject.c | 1 - src/wrapped/wrappedcap.c | 1 - src/wrapped/wrappedcrypto.c | 1 - src/wrapped/wrappedcrypto3.c | 1 - src/wrapped/wrappedcuda.c | 1 - src/wrapped/wrappedcurl.c | 1 - src/wrapped/wrappedd3dadapter9.c | 1 - src/wrapped/wrappeddbus.c | 1 - src/wrapped/wrappeddbusglib1.c | 1 - src/wrapped/wrappeddbusmenuglib.c | 1 - src/wrapped/wrappeddecor0.c | 1 - src/wrapped/wrappedevent21.c | 1 - src/wrapped/wrappedexpat.c | 1 - src/wrapped/wrappedfaudio.c | 1 - src/wrapped/wrappedflac.c | 1 - src/wrapped/wrappedfontconfig.c | 1 - src/wrapped/wrappedfreebl3.c | 1 - src/wrapped/wrappedfreetype.c | 1 - src/wrapped/wrappedgbm.c | 1 - src/wrapped/wrappedgconf2.c | 1 - src/wrapped/wrappedgcrypt.c | 1 - src/wrapped/wrappedgdk3.c | 1 - src/wrapped/wrappedgdkpixbuf2.c | 1 - src/wrapped/wrappedgdkx112.c | 1 - src/wrapped/wrappedgio2.c | 1 - src/wrapped/wrappedglesv2.c | 1 - src/wrapped/wrappedglib2.c | 1 - src/wrapped/wrappedgmodule2.c | 1 - src/wrapped/wrappedgmp.c | 1 - src/wrapped/wrappedgnutls.c | 1 - src/wrapped/wrappedgobject2.c | 1 - src/wrapped/wrappedgomp.c | 1 - src/wrapped/wrappedgssapi.c | 1 - src/wrapped/wrappedgssapikrb5.c | 1 - src/wrapped/wrappedgstallocators.c | 1 - src/wrapped/wrappedgstapp.c | 1 - src/wrapped/wrappedgstaudio.c | 1 - src/wrapped/wrappedgstbase.c | 1 - src/wrapped/wrappedgstcheck.c | 1 - src/wrapped/wrappedgstcontroller.c | 1 - src/wrapped/wrappedgstfft.c | 1 - src/wrapped/wrappedgstgl.c | 1 - src/wrapped/wrappedgstnet.c | 1 - src/wrapped/wrappedgstpbutils.c | 1 - src/wrapped/wrappedgstreamer.c | 1 - src/wrapped/wrappedgstriff.c | 1 - src/wrapped/wrappedgstrtp.c | 1 - src/wrapped/wrappedgstrtsp.c | 1 - src/wrapped/wrappedgstsdp.c | 1 - src/wrapped/wrappedgsttag.c | 1 - src/wrapped/wrappedgstvideo.c | 1 - src/wrapped/wrappedgthread2.c | 1 - src/wrapped/wrappedgtk3.c | 1 - src/wrapped/wrappedgtkx112.c | 1 - src/wrapped/wrappedharfbuzzsubset.c | 1 - src/wrapped/wrappediconv.c | 1 - src/wrapped/wrappedicui18n64.c | 1 - src/wrapped/wrappedicui18n66.c | 1 - src/wrapped/wrappedicui18n67.c | 1 - src/wrapped/wrappedicui18n68.c | 1 - src/wrapped/wrappedicui18n72.c | 1 - src/wrapped/wrappedicui18n73.c | 1 - src/wrapped/wrappedicui18n74.c | 1 - src/wrapped/wrappedicui18n75.c | 1 - src/wrapped/wrappedicui18n76.c | 1 - src/wrapped/wrappedicuuc64.c | 1 - src/wrapped/wrappedicuuc66.c | 1 - src/wrapped/wrappedicuuc67.c | 1 - src/wrapped/wrappedicuuc68.c | 1 - src/wrapped/wrappedicuuc72.c | 1 - src/wrapped/wrappedicuuc73.c | 1 - src/wrapped/wrappedicuuc74.c | 1 - src/wrapped/wrappedicuuc75.c | 1 - src/wrapped/wrappedicuuc76.c | 1 - src/wrapped/wrappedidn2.c | 1 - src/wrapped/wrappedkrb5.c | 1 - src/wrapped/wrappedlber.c | 1 - src/wrapped/wrappedlcms2.c | 1 - src/wrapped/wrappedldapr.c | 1 - src/wrapped/wrappedldlinux.c | 1 - src/wrapped/wrappedlibasound.c | 1 - src/wrapped/wrappedlibavcodec58.c | 1 - src/wrapped/wrappedlibavformat58.c | 1 - src/wrapped/wrappedlibavutil56.c | 1 - src/wrapped/wrappedlibblas.c | 1 - src/wrapped/wrappedlibbsd.c | 1 - src/wrapped/wrappedlibc.c | 1 - src/wrapped/wrappedlibcmusl.c | 1 - src/wrapped/wrappedlibcrypt.c | 1 - src/wrapped/wrappedlibcups.c | 1 - src/wrapped/wrappedlibcupsimage.c | 1 - src/wrapped/wrappedlibdl.c | 1 - src/wrapped/wrappedlibdrm.c | 1 - src/wrapped/wrappedlibdrmamdgpu.c | 1 - src/wrapped/wrappedlibegl.c | 1 - src/wrapped/wrappedlibform.c | 1 - src/wrapped/wrappedlibformw.c | 1 - src/wrapped/wrappedlibformw6.c | 1 - src/wrapped/wrappedlibfuse.c | 1 - src/wrapped/wrappedlibgl.c | 1 - src/wrapped/wrappedlibglu.c | 1 - src/wrapped/wrappedlibglx.c | 1 - src/wrapped/wrappedlibglxnvidia.c | 1 - src/wrapped/wrappedlibgpgme.c | 1 - src/wrapped/wrappedlibharfbuzz.c | 1 - src/wrapped/wrappedlibhogweed6.c | 1 - src/wrapped/wrappedlibibus.c | 1 - src/wrapped/wrappedlibice.c | 1 - src/wrapped/wrappedliblapack.c | 1 - src/wrapped/wrappedlibm.c | 1 - src/wrapped/wrappedlibmvec.c | 1 - src/wrapped/wrappedlibncurses.c | 1 - src/wrapped/wrappedlibncurses6.c | 1 - src/wrapped/wrappedlibncursesw.c | 1 - src/wrapped/wrappedlibncursesw6.c | 1 - src/wrapped/wrappedlibnettle8.c | 1 - src/wrapped/wrappedlibnuma.c | 1 - src/wrapped/wrappedlibogg.c | 1 - src/wrapped/wrappedlibomp.c | 1 - src/wrapped/wrappedlibopus.c | 1 - src/wrapped/wrappedlibpanel.c | 1 - src/wrapped/wrappedlibpci.c | 1 - src/wrapped/wrappedlibpcre.c | 1 - src/wrapped/wrappedlibpcre216.c | 1 - src/wrapped/wrappedlibpthread.c | 1 - src/wrapped/wrappedlibresolv.c | 1 - src/wrapped/wrappedlibrt.c | 1 - src/wrapped/wrappedlibsm.c | 1 - src/wrapped/wrappedlibsndfile.c | 1 - src/wrapped/wrappedlibsqlite3.c | 1 - src/wrapped/wrappedlibssh2.c | 1 - src/wrapped/wrappedlibssl.c | 1 - src/wrapped/wrappedlibssl3.c | 1 - src/wrapped/wrappedlibtasn1.c | 1 - src/wrapped/wrappedlibtiff5.c | 1 - src/wrapped/wrappedlibtinfo.c | 1 - src/wrapped/wrappedlibtinfo6.c | 1 - src/wrapped/wrappedlibunistring2.c | 1 - src/wrapped/wrappedlibusb1.c | 1 - src/wrapped/wrappedlibuuid.c | 1 - src/wrapped/wrappedlibva.c | 1 - src/wrapped/wrappedlibvadrm.c | 1 - src/wrapped/wrappedlibvawayland.c | 1 - src/wrapped/wrappedlibvax11.c | 1 - src/wrapped/wrappedlibvdpau.c | 1 - src/wrapped/wrappedlibvorbis.c | 1 - src/wrapped/wrappedlibvpx.c | 1 - src/wrapped/wrappedlibx11.c | 1 - src/wrapped/wrappedlibx11xcb.c | 1 - src/wrapped/wrappedlibxau.c | 1 - src/wrapped/wrappedlibxaw.c | 1 - src/wrapped/wrappedlibxcb.c | 1 - src/wrapped/wrappedlibxcbcursor.c | 1 - src/wrapped/wrappedlibxcbdri2.c | 1 - src/wrapped/wrappedlibxcbdri3.c | 1 - src/wrapped/wrappedlibxcbglx.c | 1 - src/wrapped/wrappedlibxcbicccm.c | 1 - src/wrapped/wrappedlibxcbimage.c | 1 - src/wrapped/wrappedlibxcbkeysyms.c | 1 - src/wrapped/wrappedlibxcbpresent.c | 1 - src/wrapped/wrappedlibxcbrandr.c | 1 - src/wrapped/wrappedlibxcbrender.c | 1 - src/wrapped/wrappedlibxcbrenderutil.c | 1 - src/wrapped/wrappedlibxcbres.c | 1 - src/wrapped/wrappedlibxcbshape.c | 1 - src/wrapped/wrappedlibxcbshm.c | 1 - src/wrapped/wrappedlibxcbsync.c | 1 - src/wrapped/wrappedlibxcbutil.c | 1 - src/wrapped/wrappedlibxcbxfixes.c | 1 - src/wrapped/wrappedlibxcbxinerama.c | 1 - src/wrapped/wrappedlibxcbxinput.c | 1 - src/wrapped/wrappedlibxcbxkb.c | 1 - src/wrapped/wrappedlibxcbxtest.c | 1 - src/wrapped/wrappedlibxcomposite.c | 1 - src/wrapped/wrappedlibxcursor.c | 1 - src/wrapped/wrappedlibxdamage.c | 1 - src/wrapped/wrappedlibxdmcp.c | 1 - src/wrapped/wrappedlibxext.c | 1 - src/wrapped/wrappedlibxfixes.c | 1 - src/wrapped/wrappedlibxft.c | 1 - src/wrapped/wrappedlibxi.c | 1 - src/wrapped/wrappedlibxmu.c | 1 - src/wrapped/wrappedlibxpm.c | 1 - src/wrapped/wrappedlibxpresent.c | 1 - src/wrapped/wrappedlibxrandr.c | 1 - src/wrapped/wrappedlibxrender.c | 1 - src/wrapped/wrappedlibxss.c | 1 - src/wrapped/wrappedlibxt.c | 1 - src/wrapped/wrappedlibxtst.c | 1 - src/wrapped/wrappedlibxxf86vm.c | 1 - src/wrapped/wrappedlibz.c | 1 - src/wrapped/wrappedlz4.c | 1 - src/wrapped/wrappedlzma.c | 1 - src/wrapped/wrappedmimalloc.c | 1 - src/wrapped/wrappedmpg123.c | 1 - src/wrapped/wrappednotify.c | 1 - src/wrapped/wrappednsl.c | 1 - src/wrapped/wrappednspr4.c | 1 - src/wrapped/wrappednss3.c | 1 - src/wrapped/wrappednssutil3.c | 1 - src/wrapped/wrappednvml.c | 1 - src/wrapped/wrappedopenal.c | 1 - src/wrapped/wrappedopencl.c | 1 - src/wrapped/wrappedp11kit.c | 1 - src/wrapped/wrappedpam.c | 1 - src/wrapped/wrappedpango.c | 1 - src/wrapped/wrappedpangocairo.c | 1 - src/wrapped/wrappedpangoft2.c | 1 - src/wrapped/wrappedpcap.c | 1 - src/wrapped/wrappedpixman1.c | 1 - src/wrapped/wrappedplc4.c | 1 - src/wrapped/wrappedplds4.c | 1 - src/wrapped/wrappedpng16.c | 1 - src/wrapped/wrappedproxy.c | 1 - src/wrapped/wrappedpsl5.c | 1 - src/wrapped/wrappedpulse.c | 1 - src/wrapped/wrappedpulsemainloopglib.c | 1 - src/wrapped/wrappedpulsesimple.c | 1 - src/wrapped/wrappedsdl1.c | 1 - src/wrapped/wrappedsdl1image.c | 1 - src/wrapped/wrappedsdl1mixer.c | 1 - src/wrapped/wrappedsdl1net.c | 1 - src/wrapped/wrappedsdl1sound.c | 1 - src/wrapped/wrappedsdl1ttf.c | 1 - src/wrapped/wrappedsdl2.c | 1 - src/wrapped/wrappedsdl2image.c | 1 - src/wrapped/wrappedsdl2mixer.c | 1 - src/wrapped/wrappedsdl2net.c | 1 - src/wrapped/wrappedsdl2ttf.c | 1 - src/wrapped/wrappedsdl3.c | 1 - src/wrapped/wrappedsdl3ttf.c | 1 - src/wrapped/wrappedsecret1.c | 1 - src/wrapped/wrappedselinux.c | 1 - src/wrapped/wrappedsmbclient.c | 1 - src/wrapped/wrappedsmime3.c | 1 - src/wrapped/wrappedsmpeg.c | 1 - src/wrapped/wrappedsmpeg2.c | 1 - src/wrapped/wrappedsoftokn3.c | 1 - src/wrapped/wrappedssh4.c | 1 - src/wrapped/wrappedssl3.c | 1 - src/wrapped/wrappedsystemd.c | 1 - src/wrapped/wrappedtbbbind.c | 1 - src/wrapped/wrappedtbbmalloc.c | 1 - src/wrapped/wrappedtbbmallocproxy.c | 1 - src/wrapped/wrappedtcmallocminimal.c | 1 - src/wrapped/wrappedtermuxexec.c | 1 - src/wrapped/wrappedudev0.c | 1 - src/wrapped/wrappedudev1.c | 1 - src/wrapped/wrappedunwind.c | 1 - src/wrapped/wrappedutil.c | 1 - src/wrapped/wrappedvorbisfile.c | 1 - src/wrapped/wrappedvulkan.c | 1 - src/wrapped/wrappedwaylandclient.c | 1 - src/wrapped/wrappedwaylandcursor.c | 1 - src/wrapped/wrappedwaylandegl.c | 1 - src/wrapped/wrappedxinerama.c | 1 - src/wrapped/wrappedxkbcommon.c | 1 - src/wrapped/wrappedxkbcommonx11.c | 1 - src/wrapped/wrappedxkbfile.c | 1 - src/wrapped/wrappedxkbregistry.c | 1 - src/wrapped/wrappedxml2.c | 1 - src/wrapped/wrappedxshmfence.c | 1 - src/wrapped/wrappedxslt.c | 1 - src/wrapped/wrappedzstd.c | 1 - src/wrapped32/wrappedblkid.c | 1 - src/wrapped32/wrappedcairo.c | 1 - src/wrapped32/wrappedcurl.c | 1 - src/wrapped32/wrappeddbus.c | 1 - src/wrapped32/wrappedexpat.c | 1 - src/wrapped32/wrappedfontconfig.c | 1 - src/wrapped32/wrappedfreetype.c | 1 - src/wrapped32/wrappedgbm.c | 1 - src/wrapped32/wrappedgnutls.c | 1 - src/wrapped32/wrappedldlinux.c | 1 - src/wrapped32/wrappedlibasound.c | 1 - src/wrapped32/wrappedlibc.c | 1 - src/wrapped32/wrappedlibcups.c | 1 - src/wrapped32/wrappedlibdl.c | 1 - src/wrapped32/wrappedlibdrm.c | 1 - src/wrapped32/wrappedlibegl.c | 1 - src/wrapped32/wrappedlibgl.c | 1 - src/wrapped32/wrappedlibglu.c | 1 - src/wrapped32/wrappedlibglx.c | 1 - src/wrapped32/wrappedlibglxnvidia.c | 1 - src/wrapped32/wrappedlibm.c | 1 - src/wrapped32/wrappedlibogg.c | 1 - src/wrapped32/wrappedlibpthread.c | 1 - src/wrapped32/wrappedlibresolv.c | 1 - src/wrapped32/wrappedlibrt.c | 1 - src/wrapped32/wrappedlibuuid.c | 1 - src/wrapped32/wrappedlibvdpau.c | 1 - src/wrapped32/wrappedlibvorbis.c | 1 - src/wrapped32/wrappedlibx11.c | 1 - src/wrapped32/wrappedlibx11xcb.c | 1 - src/wrapped32/wrappedlibxcb.c | 1 - src/wrapped32/wrappedlibxcbres.c | 1 - src/wrapped32/wrappedlibxcomposite.c | 1 - src/wrapped32/wrappedlibxcursor.c | 1 - src/wrapped32/wrappedlibxdamage.c | 1 - src/wrapped32/wrappedlibxext.c | 1 - src/wrapped32/wrappedlibxfixes.c | 1 - src/wrapped32/wrappedlibxi.c | 1 - src/wrapped32/wrappedlibxrandr.c | 1 - src/wrapped32/wrappedlibxrender.c | 1 - src/wrapped32/wrappedlibxss.c | 1 - src/wrapped32/wrappedlibxxf86vm.c | 1 - src/wrapped32/wrappedmount.c | 1 - src/wrapped32/wrappednsl.c | 1 - src/wrapped32/wrappednvml.c | 1 - src/wrapped32/wrappedopenal.c | 1 - src/wrapped32/wrappedpulsesimple.c | 1 - src/wrapped32/wrappedsdl1.c | 1 - src/wrapped32/wrappedsdl2.c | 1 - src/wrapped32/wrappedsdl2image.c | 1 - src/wrapped32/wrappedselinux.c | 1 - src/wrapped32/wrappedtcmallocminimal.c | 1 - src/wrapped32/wrappedudev0.c | 1 - src/wrapped32/wrappedudev1.c | 1 - src/wrapped32/wrappedxinerama.c | 1 - wrapperhelper/example-libc.h | 1 - 412 files changed, 1 insertion(+), 411 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4098f33e21..600befac7c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -384,6 +384,7 @@ endif() set(BOX64_ROOT ${CMAKE_SOURCE_DIR}) add_definitions(-std=gnu11 -funwind-tables -fvisibility=hidden) +add_definitions(-D_GNU_SOURCE=1) if(USE_CCACHE) find_program(CCACHE_FOUND ccache) diff --git a/external/musl/sincos.c b/external/musl/sincos.c index c8d866ba94..5183e43c1b 100644 --- a/external/musl/sincos.c +++ b/external/musl/sincos.c @@ -10,7 +10,6 @@ * ==================================================== */ -#define _GNU_SOURCE #include "libm.h" void __cdecl sincos(double x, double *sin, double *cos) diff --git a/src/box64context.c b/src/box64context.c index 751b301ba0..0756ca8f9d 100644 --- a/src/box64context.c +++ b/src/box64context.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/custommem.c b/src/custommem.c index ec388e5870..ea291f5303 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/custommmap.c b/src/custommmap.c index d5ff368e1c..ddd2646b1f 100644 --- a/src/custommmap.c +++ b/src/custommmap.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/dynarec/arm64/dynarec_arm64_functions.c b/src/dynarec/arm64/dynarec_arm64_functions.c index d8ec21222b..f8f3f56ca9 100644 --- a/src/dynarec/arm64/dynarec_arm64_functions.c +++ b/src/dynarec/arm64/dynarec_arm64_functions.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/dynarec/dynarec_native_functions.c b/src/dynarec/dynarec_native_functions.c index fa8c58d56d..2a6a7f3011 100644 --- a/src/dynarec/dynarec_native_functions.c +++ b/src/dynarec/dynarec_native_functions.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/dynarec/la64/dynarec_la64_functions.c b/src/dynarec/la64/dynarec_la64_functions.c index 8d3273f189..26a25d5d4e 100644 --- a/src/dynarec/la64/dynarec_la64_functions.c +++ b/src/dynarec/la64/dynarec_la64_functions.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/dynarec/ppc64le/dynarec_ppc64le_functions.c b/src/dynarec/ppc64le/dynarec_ppc64le_functions.c index 62c466e141..15794c5d0a 100644 --- a/src/dynarec/ppc64le/dynarec_ppc64le_functions.c +++ b/src/dynarec/ppc64le/dynarec_ppc64le_functions.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/dynarec/rv64/dynarec_rv64_functions.c b/src/dynarec/rv64/dynarec_rv64_functions.c index 1024b28ca2..9358a814fd 100644 --- a/src/dynarec/rv64/dynarec_rv64_functions.c +++ b/src/dynarec/rv64/dynarec_rv64_functions.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfhacks.c b/src/elfs/elfhacks.c index a7509023c3..1817408bdb 100644 --- a/src/elfs/elfhacks.c +++ b/src/elfs/elfhacks.c @@ -7,7 +7,6 @@ */ #ifndef _GNU_SOURCE -#define _GNU_SOURCE #endif #include diff --git a/src/elfs/elfhash.c b/src/elfs/elfhash.c index 71b817feb7..e4fb7dc94e 100644 --- a/src/elfs/elfhash.c +++ b/src/elfs/elfhash.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfhash32.c b/src/elfs/elfhash32.c index d742d874ce..f27bc7145c 100644 --- a/src/elfs/elfhash32.c +++ b/src/elfs/elfhash32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 0217e9c433..34ee518641 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfloader32.c b/src/elfs/elfloader32.c index 766393884e..f0552dd35c 100644 --- a/src/elfs/elfloader32.c +++ b/src/elfs/elfloader32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfparser.c b/src/elfs/elfparser.c index 2d63cf4d41..7d7df595eb 100644 --- a/src/elfs/elfparser.c +++ b/src/elfs/elfparser.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/elfs/elfparser32.c b/src/elfs/elfparser32.c index a7901f9608..aada177f4e 100755 --- a/src/elfs/elfparser32.c +++ b/src/elfs/elfparser32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64int3.c b/src/emu/x64int3.c index c72aa714d2..922800471b 100644 --- a/src/emu/x64int3.c +++ b/src/emu/x64int3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/emu/x64run.c b/src/emu/x64run.c index 6079b3e50c..6d18e01384 100644 --- a/src/emu/x64run.c +++ b/src/emu/x64run.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index 5efea698ac..5c0cf3e012 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66.c b/src/emu/x64run66.c index 25b94d21e4..5018fd0e4a 100644 --- a/src/emu/x64run66.c +++ b/src/emu/x64run66.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index a6bb2f8e35..15af029439 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66d9.c b/src/emu/x64run66d9.c index aee6f59ac5..c4bf264c2b 100644 --- a/src/emu/x64run66d9.c +++ b/src/emu/x64run66d9.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66dd.c b/src/emu/x64run66dd.c index 19614b1f13..d50f29bb28 100644 --- a/src/emu/x64run66dd.c +++ b/src/emu/x64run66dd.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66f0.c b/src/emu/x64run66f0.c index 25d196be57..3e2d3a13b4 100644 --- a/src/emu/x64run66f0.c +++ b/src/emu/x64run66f0.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66f20f.c b/src/emu/x64run66f20f.c index b263302eed..0b39668aa7 100644 --- a/src/emu/x64run66f20f.c +++ b/src/emu/x64run66f20f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run66f30f.c b/src/emu/x64run66f30f.c index bd6d3d33e2..abd2d7baf0 100644 --- a/src/emu/x64run66f30f.c +++ b/src/emu/x64run66f30f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c index f7748992c0..6e8c416363 100644 --- a/src/emu/x64run_private.c +++ b/src/emu/x64run_private.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/emu/x64runavx.c b/src/emu/x64runavx.c index 36ac7031a9..daed5d04fb 100644 --- a/src/emu/x64runavx.c +++ b/src/emu/x64runavx.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavx0f.c b/src/emu/x64runavx0f.c index 11a86ac534..623f2bfc34 100644 --- a/src/emu/x64runavx0f.c +++ b/src/emu/x64runavx0f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavx0f38.c b/src/emu/x64runavx0f38.c index bae5b32086..137432ef50 100644 --- a/src/emu/x64runavx0f38.c +++ b/src/emu/x64runavx0f38.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavx660f.c b/src/emu/x64runavx660f.c index 9123f7945a..4c1590047a 100644 --- a/src/emu/x64runavx660f.c +++ b/src/emu/x64runavx660f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavx660f38.c b/src/emu/x64runavx660f38.c index eeeb59238c..bc19c0f63b 100644 --- a/src/emu/x64runavx660f38.c +++ b/src/emu/x64runavx660f38.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavx660f3a.c b/src/emu/x64runavx660f3a.c index ea78c745a7..67f4bd0a0d 100644 --- a/src/emu/x64runavx660f3a.c +++ b/src/emu/x64runavx660f3a.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf20f.c b/src/emu/x64runavxf20f.c index 5b63d208d2..5236d17e53 100644 --- a/src/emu/x64runavxf20f.c +++ b/src/emu/x64runavxf20f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf20f38.c b/src/emu/x64runavxf20f38.c index 4a8d9a9232..23ff84df3a 100644 --- a/src/emu/x64runavxf20f38.c +++ b/src/emu/x64runavxf20f38.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf20f3a.c b/src/emu/x64runavxf20f3a.c index e53c8fb717..720ab7e7d4 100644 --- a/src/emu/x64runavxf20f3a.c +++ b/src/emu/x64runavxf20f3a.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf30f.c b/src/emu/x64runavxf30f.c index f7bad00f10..4999138900 100644 --- a/src/emu/x64runavxf30f.c +++ b/src/emu/x64runavxf30f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf30f38.c b/src/emu/x64runavxf30f38.c index cd15c5aaef..3084606a2b 100644 --- a/src/emu/x64runavxf30f38.c +++ b/src/emu/x64runavxf30f38.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runavxf30f3a.c b/src/emu/x64runavxf30f3a.c index c67fcd9b88..caacf91c01 100644 --- a/src/emu/x64runavxf30f3a.c +++ b/src/emu/x64runavxf30f3a.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rund8.c b/src/emu/x64rund8.c index eec0a27e58..092ca28634 100644 --- a/src/emu/x64rund8.c +++ b/src/emu/x64rund8.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rund9.c b/src/emu/x64rund9.c index f92592235b..ef652ee707 100644 --- a/src/emu/x64rund9.c +++ b/src/emu/x64rund9.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runda.c b/src/emu/x64runda.c index 0c4b869acd..c9e0b520f3 100644 --- a/src/emu/x64runda.c +++ b/src/emu/x64runda.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rundb.c b/src/emu/x64rundb.c index 256129fc4e..0998a035a3 100644 --- a/src/emu/x64rundb.c +++ b/src/emu/x64rundb.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rundc.c b/src/emu/x64rundc.c index f42bc67b31..56447e83bf 100644 --- a/src/emu/x64rundc.c +++ b/src/emu/x64rundc.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rundd.c b/src/emu/x64rundd.c index 059e239c64..acd9c2898b 100644 --- a/src/emu/x64rundd.c +++ b/src/emu/x64rundd.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runde.c b/src/emu/x64runde.c index 2ff42e1242..5f0bbb31ad 100644 --- a/src/emu/x64runde.c +++ b/src/emu/x64runde.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64rundf.c b/src/emu/x64rundf.c index 092dd6af98..9bb19df71e 100644 --- a/src/emu/x64rundf.c +++ b/src/emu/x64rundf.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runf0.c b/src/emu/x64runf0.c index c17bf60ac2..421c172093 100644 --- a/src/emu/x64runf0.c +++ b/src/emu/x64runf0.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runf20f.c b/src/emu/x64runf20f.c index 543e984873..aea79a5351 100644 --- a/src/emu/x64runf20f.c +++ b/src/emu/x64runf20f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64runf30f.c b/src/emu/x64runf30f.c index 3a99ebf631..12ecaff759 100644 --- a/src/emu/x64runf30f.c +++ b/src/emu/x64runf30f.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c index e5f29a7bcb..b182047324 100644 --- a/src/emu/x64syscall.c +++ b/src/emu/x64syscall.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/emu/x64test.c b/src/emu/x64test.c index 36a04c3805..259d434248 100644 --- a/src/emu/x64test.c +++ b/src/emu/x64test.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c index 8bd32a73fe..4e86ff0381 100755 --- a/src/emu/x86int3.c +++ b/src/emu/x86int3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/emu/x86syscall.c b/src/emu/x86syscall.c index 7e831b423e..2672592466 100755 --- a/src/emu/x86syscall.c +++ b/src/emu/x86syscall.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/emu/x86syscall_32.c b/src/emu/x86syscall_32.c index edac2ae4d5..e0ab78bd94 100644 --- a/src/emu/x86syscall_32.c +++ b/src/emu/x86syscall_32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/librarian/globalsymbols.c b/src/librarian/globalsymbols.c index c328ad0616..42c9047702 100644 --- a/src/librarian/globalsymbols.c +++ b/src/librarian/globalsymbols.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/librarian/globalsymbols32.c b/src/librarian/globalsymbols32.c index 4d565fcfda..5264c59f01 100644 --- a/src/librarian/globalsymbols32.c +++ b/src/librarian/globalsymbols32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/librarian/library.c b/src/librarian/library.c index 1c5b044598..3c33743097 100644 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #define __USE_GNU #include #include diff --git a/src/libtools/libc_net32.c b/src/libtools/libc_net32.c index e2017ce409..aac38a317a 100644 --- a/src/libtools/libc_net32.c +++ b/src/libtools/libc_net32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/libtools/libdl.c b/src/libtools/libdl.c index fe8062130b..c4c8147be7 100644 --- a/src/libtools/libdl.c +++ b/src/libtools/libdl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/obstack.c b/src/libtools/obstack.c index 19a9a99992..7bd577f72d 100644 --- a/src/libtools/obstack.c +++ b/src/libtools/obstack.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: MIT #define _LARGEFILE_SOURCE 1 #define _FILE_OFFSET_BITS 64 -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/libtools/signal32.c b/src/libtools/signal32.c index 8c82789998..add8cb1407 100644 --- a/src/libtools/signal32.c +++ b/src/libtools/signal32.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/signals.c b/src/libtools/signals.c index c48a41fe8e..257e1816b2 100644 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/syscall_user_dispatch.c b/src/libtools/syscall_user_dispatch.c index 68c6efc414..83675104b2 100644 --- a/src/libtools/syscall_user_dispatch.c +++ b/src/libtools/syscall_user_dispatch.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/threads.c b/src/libtools/threads.c index a5eb148194..524e36bd4f 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: MIT // __USE_UNIX98 is needed for sttype / gettype definition #define __USE_UNIX98 -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/threads32.c b/src/libtools/threads32.c index a5220cfc48..180036af46 100755 --- a/src/libtools/threads32.c +++ b/src/libtools/threads32.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: MIT // __USE_UNIX98 is needed for sttype / gettype definition #define __USE_UNIX98 -#define _GNU_SOURCE #include #include #include diff --git a/src/libtools/vulkanoverlay.c b/src/libtools/vulkanoverlay.c index e67201024d..3b5830bd3c 100644 --- a/src/libtools/vulkanoverlay.c +++ b/src/libtools/vulkanoverlay.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/mallochook.c b/src/mallochook.c index 80f7696b1e..ad8d28646e 100644 --- a/src/mallochook.c +++ b/src/mallochook.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/os/my_cpuid.c b/src/os/my_cpuid.c index 8ebcde97aa..be1e7d64f4 100644 --- a/src/os/my_cpuid.c +++ b/src/os/my_cpuid.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include diff --git a/src/os/os_linux.c b/src/os/os_linux.c index 141ba0c90b..948d723a3d 100644 --- a/src/os/os_linux.c +++ b/src/os/os_linux.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/os/sysinfo.c b/src/os/sysinfo.c index 9daa7ce2df..db78a126ef 100644 --- a/src/os/sysinfo.c +++ b/src/os/sysinfo.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/tools/bridge.c b/src/tools/bridge.c index 3f9324fec0..b3aced3e1f 100644 --- a/src/tools/bridge.c +++ b/src/tools/bridge.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/tools/cpumask.c b/src/tools/cpumask.c index 7db40e3967..62f9afa4d3 100644 --- a/src/tools/cpumask.c +++ b/src/tools/cpumask.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: MIT #ifndef _WIN32 -#define _GNU_SOURCE #include #endif #include diff --git a/src/tools/gtkclass.c b/src/tools/gtkclass.c index ef3fca573e..8ebe256fd1 100644 --- a/src/tools/gtkclass.c +++ b/src/tools/gtkclass.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedalure.c b/src/wrapped/wrappedalure.c index 5d58527797..7217db8da1 100644 --- a/src/wrapped/wrappedalure.c +++ b/src/wrapped/wrappedalure.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedalut.c b/src/wrapped/wrappedalut.c index 418b08380c..46636d404a 100644 --- a/src/wrapped/wrappedalut.c +++ b/src/wrapped/wrappedalut.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedandroidshmem.c b/src/wrapped/wrappedandroidshmem.c index 50ad62a7f5..f3facfa0f1 100755 --- a/src/wrapped/wrappedandroidshmem.c +++ b/src/wrapped/wrappedandroidshmem.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedandroidsupport.c b/src/wrapped/wrappedandroidsupport.c index 82f1eb638c..95dd718828 100644 --- a/src/wrapped/wrappedandroidsupport.c +++ b/src/wrapped/wrappedandroidsupport.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedanl.c b/src/wrapped/wrappedanl.c index 74f869afb7..88655e226e 100644 --- a/src/wrapped/wrappedanl.c +++ b/src/wrapped/wrappedanl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedatk.c b/src/wrapped/wrappedatk.c index 156cbe5395..7581d74548 100644 --- a/src/wrapped/wrappedatk.c +++ b/src/wrapped/wrappedatk.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedatkbridge.c b/src/wrapped/wrappedatkbridge.c index 7049d60b43..1e17a59d6f 100644 --- a/src/wrapped/wrappedatkbridge.c +++ b/src/wrapped/wrappedatkbridge.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedatomic.c b/src/wrapped/wrappedatomic.c index d1a3b3c800..a7e8de7989 100644 --- a/src/wrapped/wrappedatomic.c +++ b/src/wrapped/wrappedatomic.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedatspi.c b/src/wrapped/wrappedatspi.c index b50f57ee07..4b80a0c360 100644 --- a/src/wrapped/wrappedatspi.c +++ b/src/wrapped/wrappedatspi.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedavahiclient.c b/src/wrapped/wrappedavahiclient.c index a4b1c05e38..5433a1ad25 100644 --- a/src/wrapped/wrappedavahiclient.c +++ b/src/wrapped/wrappedavahiclient.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedavahicommon.c b/src/wrapped/wrappedavahicommon.c index ac1a6706cb..670e2cab46 100644 --- a/src/wrapped/wrappedavahicommon.c +++ b/src/wrapped/wrappedavahicommon.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedayatanaappindicator3.c b/src/wrapped/wrappedayatanaappindicator3.c index 9302834f82..5acebbb908 100644 --- a/src/wrapped/wrappedayatanaappindicator3.c +++ b/src/wrapped/wrappedayatanaappindicator3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedayatanaido3.c b/src/wrapped/wrappedayatanaido3.c index bf68467c0c..5a433c55cd 100644 --- a/src/wrapped/wrappedayatanaido3.c +++ b/src/wrapped/wrappedayatanaido3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedayatanaindicator3.c b/src/wrapped/wrappedayatanaindicator3.c index e3c64a0219..d2e34048da 100644 --- a/src/wrapped/wrappedayatanaindicator3.c +++ b/src/wrapped/wrappedayatanaindicator3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedbrotlidec.c b/src/wrapped/wrappedbrotlidec.c index 91ec1c3da3..dab1dd3291 100644 --- a/src/wrapped/wrappedbrotlidec.c +++ b/src/wrapped/wrappedbrotlidec.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedbz2.c b/src/wrapped/wrappedbz2.c index 6824e8ff5e..5a49d8c4a9 100644 --- a/src/wrapped/wrappedbz2.c +++ b/src/wrapped/wrappedbz2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedcairo.c b/src/wrapped/wrappedcairo.c index 78fa2dcbbd..eaf4176622 100644 --- a/src/wrapped/wrappedcairo.c +++ b/src/wrapped/wrappedcairo.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedcairogobject.c b/src/wrapped/wrappedcairogobject.c index fb77d935d2..95c0a8585c 100644 --- a/src/wrapped/wrappedcairogobject.c +++ b/src/wrapped/wrappedcairogobject.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedcap.c b/src/wrapped/wrappedcap.c index f497c11861..0a5423c40c 100644 --- a/src/wrapped/wrappedcap.c +++ b/src/wrapped/wrappedcap.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedcrypto.c b/src/wrapped/wrappedcrypto.c index eed7652403..e9a1f82d61 100644 --- a/src/wrapped/wrappedcrypto.c +++ b/src/wrapped/wrappedcrypto.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedcrypto3.c b/src/wrapped/wrappedcrypto3.c index 419ad501ae..02eb8ce61f 100644 --- a/src/wrapped/wrappedcrypto3.c +++ b/src/wrapped/wrappedcrypto3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedcuda.c b/src/wrapped/wrappedcuda.c index 61e0e6a0e7..92c1854eac 100644 --- a/src/wrapped/wrappedcuda.c +++ b/src/wrapped/wrappedcuda.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedcurl.c b/src/wrapped/wrappedcurl.c index fb4b3ffc17..c082b13d2f 100644 --- a/src/wrapped/wrappedcurl.c +++ b/src/wrapped/wrappedcurl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedd3dadapter9.c b/src/wrapped/wrappedd3dadapter9.c index c868602aeb..a20f1dd224 100644 --- a/src/wrapped/wrappedd3dadapter9.c +++ b/src/wrapped/wrappedd3dadapter9.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappeddbus.c b/src/wrapped/wrappeddbus.c index a000729e3a..dd76acf223 100644 --- a/src/wrapped/wrappeddbus.c +++ b/src/wrapped/wrappeddbus.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappeddbusglib1.c b/src/wrapped/wrappeddbusglib1.c index cbfb004841..6c87824e9b 100644 --- a/src/wrapped/wrappeddbusglib1.c +++ b/src/wrapped/wrappeddbusglib1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappeddbusmenuglib.c b/src/wrapped/wrappeddbusmenuglib.c index cca46cc599..0951ed0aba 100644 --- a/src/wrapped/wrappeddbusmenuglib.c +++ b/src/wrapped/wrappeddbusmenuglib.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappeddecor0.c b/src/wrapped/wrappeddecor0.c index e6bdb3d377..e38e50ae2e 100644 --- a/src/wrapped/wrappeddecor0.c +++ b/src/wrapped/wrappeddecor0.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedevent21.c b/src/wrapped/wrappedevent21.c index a4f5037d0b..fe569ce36f 100644 --- a/src/wrapped/wrappedevent21.c +++ b/src/wrapped/wrappedevent21.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedexpat.c b/src/wrapped/wrappedexpat.c index 5ca18bb0b1..c8be7b1bd6 100644 --- a/src/wrapped/wrappedexpat.c +++ b/src/wrapped/wrappedexpat.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedfaudio.c b/src/wrapped/wrappedfaudio.c index a0a708957e..23f321f175 100644 --- a/src/wrapped/wrappedfaudio.c +++ b/src/wrapped/wrappedfaudio.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedflac.c b/src/wrapped/wrappedflac.c index f531a1917d..5faa1b63f5 100644 --- a/src/wrapped/wrappedflac.c +++ b/src/wrapped/wrappedflac.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedfontconfig.c b/src/wrapped/wrappedfontconfig.c index cc237f75f8..747cb43415 100644 --- a/src/wrapped/wrappedfontconfig.c +++ b/src/wrapped/wrappedfontconfig.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedfreebl3.c b/src/wrapped/wrappedfreebl3.c index b24216937a..c8c12de664 100644 --- a/src/wrapped/wrappedfreebl3.c +++ b/src/wrapped/wrappedfreebl3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedfreetype.c b/src/wrapped/wrappedfreetype.c index 8fbc755ebb..092fd6d7ed 100644 --- a/src/wrapped/wrappedfreetype.c +++ b/src/wrapped/wrappedfreetype.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgbm.c b/src/wrapped/wrappedgbm.c index 02de742b9e..ad2a6df966 100644 --- a/src/wrapped/wrappedgbm.c +++ b/src/wrapped/wrappedgbm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgconf2.c b/src/wrapped/wrappedgconf2.c index 2c1250c985..e8e4ee0161 100644 --- a/src/wrapped/wrappedgconf2.c +++ b/src/wrapped/wrappedgconf2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgcrypt.c b/src/wrapped/wrappedgcrypt.c index 24d769429b..dc3e3e7c3a 100644 --- a/src/wrapped/wrappedgcrypt.c +++ b/src/wrapped/wrappedgcrypt.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgdk3.c b/src/wrapped/wrappedgdk3.c index a9cf7c72b1..7f6b85d14e 100644 --- a/src/wrapped/wrappedgdk3.c +++ b/src/wrapped/wrappedgdk3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedgdkpixbuf2.c b/src/wrapped/wrappedgdkpixbuf2.c index d07e289115..6b7ca4f661 100644 --- a/src/wrapped/wrappedgdkpixbuf2.c +++ b/src/wrapped/wrappedgdkpixbuf2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgdkx112.c b/src/wrapped/wrappedgdkx112.c index 39a4382399..a2fac3da45 100644 --- a/src/wrapped/wrappedgdkx112.c +++ b/src/wrapped/wrappedgdkx112.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgio2.c b/src/wrapped/wrappedgio2.c index 4e8cdf0303..8710af15db 100644 --- a/src/wrapped/wrappedgio2.c +++ b/src/wrapped/wrappedgio2.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedglesv2.c b/src/wrapped/wrappedglesv2.c index 025c96ab76..6a8f8758c8 100644 --- a/src/wrapped/wrappedglesv2.c +++ b/src/wrapped/wrappedglesv2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedglib2.c b/src/wrapped/wrappedglib2.c index 11bfff6270..b21a3c23b2 100644 --- a/src/wrapped/wrappedglib2.c +++ b/src/wrapped/wrappedglib2.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedgmodule2.c b/src/wrapped/wrappedgmodule2.c index 85e669a626..9157544a29 100644 --- a/src/wrapped/wrappedgmodule2.c +++ b/src/wrapped/wrappedgmodule2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgmp.c b/src/wrapped/wrappedgmp.c index aada01df36..add288b546 100644 --- a/src/wrapped/wrappedgmp.c +++ b/src/wrapped/wrappedgmp.c @@ -3,7 +3,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgnutls.c b/src/wrapped/wrappedgnutls.c index 0fdbbf9b80..2dd72b680f 100644 --- a/src/wrapped/wrappedgnutls.c +++ b/src/wrapped/wrappedgnutls.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgobject2.c b/src/wrapped/wrappedgobject2.c index 4dfc636021..304b26530f 100644 --- a/src/wrapped/wrappedgobject2.c +++ b/src/wrapped/wrappedgobject2.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedgomp.c b/src/wrapped/wrappedgomp.c index 88f3bc599e..69eedeb179 100644 --- a/src/wrapped/wrappedgomp.c +++ b/src/wrapped/wrappedgomp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgssapi.c b/src/wrapped/wrappedgssapi.c index ca9046439a..940dc4f91f 100644 --- a/src/wrapped/wrappedgssapi.c +++ b/src/wrapped/wrappedgssapi.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgssapikrb5.c b/src/wrapped/wrappedgssapikrb5.c index aaba3dcaa6..ef806b2a85 100644 --- a/src/wrapped/wrappedgssapikrb5.c +++ b/src/wrapped/wrappedgssapikrb5.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstallocators.c b/src/wrapped/wrappedgstallocators.c index 59e7065086..839a1ebc55 100644 --- a/src/wrapped/wrappedgstallocators.c +++ b/src/wrapped/wrappedgstallocators.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstapp.c b/src/wrapped/wrappedgstapp.c index 0647da9930..a478c47d50 100644 --- a/src/wrapped/wrappedgstapp.c +++ b/src/wrapped/wrappedgstapp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstaudio.c b/src/wrapped/wrappedgstaudio.c index 6bdecec1d3..6e172ed1b3 100644 --- a/src/wrapped/wrappedgstaudio.c +++ b/src/wrapped/wrappedgstaudio.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstbase.c b/src/wrapped/wrappedgstbase.c index 6da33294e4..c5e53fd451 100644 --- a/src/wrapped/wrappedgstbase.c +++ b/src/wrapped/wrappedgstbase.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstcheck.c b/src/wrapped/wrappedgstcheck.c index 7a799eac2f..51a27f11a3 100644 --- a/src/wrapped/wrappedgstcheck.c +++ b/src/wrapped/wrappedgstcheck.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstcontroller.c b/src/wrapped/wrappedgstcontroller.c index 16893c730b..9e4d26df4d 100644 --- a/src/wrapped/wrappedgstcontroller.c +++ b/src/wrapped/wrappedgstcontroller.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstfft.c b/src/wrapped/wrappedgstfft.c index 7d95f05007..e7f808c04f 100644 --- a/src/wrapped/wrappedgstfft.c +++ b/src/wrapped/wrappedgstfft.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstgl.c b/src/wrapped/wrappedgstgl.c index c3b9155f1a..1455b09b2e 100644 --- a/src/wrapped/wrappedgstgl.c +++ b/src/wrapped/wrappedgstgl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedgstnet.c b/src/wrapped/wrappedgstnet.c index c6b7fafa60..a23f0549a1 100644 --- a/src/wrapped/wrappedgstnet.c +++ b/src/wrapped/wrappedgstnet.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstpbutils.c b/src/wrapped/wrappedgstpbutils.c index 4287ed9721..2732fecd41 100644 --- a/src/wrapped/wrappedgstpbutils.c +++ b/src/wrapped/wrappedgstpbutils.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstreamer.c b/src/wrapped/wrappedgstreamer.c index a1b60778c1..06adf2ee19 100644 --- a/src/wrapped/wrappedgstreamer.c +++ b/src/wrapped/wrappedgstreamer.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedgstriff.c b/src/wrapped/wrappedgstriff.c index baf46f0710..e07bd29fc1 100644 --- a/src/wrapped/wrappedgstriff.c +++ b/src/wrapped/wrappedgstriff.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstrtp.c b/src/wrapped/wrappedgstrtp.c index 0a6b4d69ca..b8678dcde5 100644 --- a/src/wrapped/wrappedgstrtp.c +++ b/src/wrapped/wrappedgstrtp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstrtsp.c b/src/wrapped/wrappedgstrtsp.c index a6b14a9fd2..569cc2f573 100644 --- a/src/wrapped/wrappedgstrtsp.c +++ b/src/wrapped/wrappedgstrtsp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstsdp.c b/src/wrapped/wrappedgstsdp.c index 67f6474116..dd2d55eac3 100644 --- a/src/wrapped/wrappedgstsdp.c +++ b/src/wrapped/wrappedgstsdp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgsttag.c b/src/wrapped/wrappedgsttag.c index 5436ccb430..e7b9f63d19 100644 --- a/src/wrapped/wrappedgsttag.c +++ b/src/wrapped/wrappedgsttag.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgstvideo.c b/src/wrapped/wrappedgstvideo.c index 444a60c6ae..d857f8ee7a 100644 --- a/src/wrapped/wrappedgstvideo.c +++ b/src/wrapped/wrappedgstvideo.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgthread2.c b/src/wrapped/wrappedgthread2.c index b0d455142f..e4bd713859 100644 --- a/src/wrapped/wrappedgthread2.c +++ b/src/wrapped/wrappedgthread2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedgtk3.c b/src/wrapped/wrappedgtk3.c index 17d5a2a6b4..3cd6ab3357 100644 --- a/src/wrapped/wrappedgtk3.c +++ b/src/wrapped/wrappedgtk3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedgtkx112.c b/src/wrapped/wrappedgtkx112.c index d5efa8962d..4c761de3cc 100644 --- a/src/wrapped/wrappedgtkx112.c +++ b/src/wrapped/wrappedgtkx112.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedharfbuzzsubset.c b/src/wrapped/wrappedharfbuzzsubset.c index 4d03ba7b24..42bba08894 100644 --- a/src/wrapped/wrappedharfbuzzsubset.c +++ b/src/wrapped/wrappedharfbuzzsubset.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappediconv.c b/src/wrapped/wrappediconv.c index 685ade1aab..bb7e694c5b 100644 --- a/src/wrapped/wrappediconv.c +++ b/src/wrapped/wrappediconv.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n64.c b/src/wrapped/wrappedicui18n64.c index 10c207124e..451d45ec6f 100644 --- a/src/wrapped/wrappedicui18n64.c +++ b/src/wrapped/wrappedicui18n64.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n66.c b/src/wrapped/wrappedicui18n66.c index 4f75d53376..94ebbe4b2a 100644 --- a/src/wrapped/wrappedicui18n66.c +++ b/src/wrapped/wrappedicui18n66.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n67.c b/src/wrapped/wrappedicui18n67.c index 36decb15e3..53fd0ea4aa 100644 --- a/src/wrapped/wrappedicui18n67.c +++ b/src/wrapped/wrappedicui18n67.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n68.c b/src/wrapped/wrappedicui18n68.c index 9b9c909e4e..1d953ca3c4 100644 --- a/src/wrapped/wrappedicui18n68.c +++ b/src/wrapped/wrappedicui18n68.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n72.c b/src/wrapped/wrappedicui18n72.c index 450262dd22..b6d34e7a3f 100644 --- a/src/wrapped/wrappedicui18n72.c +++ b/src/wrapped/wrappedicui18n72.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n73.c b/src/wrapped/wrappedicui18n73.c index 0054f66da6..3af8d15a39 100644 --- a/src/wrapped/wrappedicui18n73.c +++ b/src/wrapped/wrappedicui18n73.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n74.c b/src/wrapped/wrappedicui18n74.c index 978411b9f9..f36e2989df 100644 --- a/src/wrapped/wrappedicui18n74.c +++ b/src/wrapped/wrappedicui18n74.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n75.c b/src/wrapped/wrappedicui18n75.c index 51b388dfbc..2854bc2e0a 100644 --- a/src/wrapped/wrappedicui18n75.c +++ b/src/wrapped/wrappedicui18n75.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicui18n76.c b/src/wrapped/wrappedicui18n76.c index 647ab49020..a26673ac2f 100644 --- a/src/wrapped/wrappedicui18n76.c +++ b/src/wrapped/wrappedicui18n76.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc64.c b/src/wrapped/wrappedicuuc64.c index af4dbdd0cd..c5cff9fdd9 100644 --- a/src/wrapped/wrappedicuuc64.c +++ b/src/wrapped/wrappedicuuc64.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc66.c b/src/wrapped/wrappedicuuc66.c index 368e1eb90b..154e5fb4b2 100644 --- a/src/wrapped/wrappedicuuc66.c +++ b/src/wrapped/wrappedicuuc66.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc67.c b/src/wrapped/wrappedicuuc67.c index ba6c703576..e3130edef4 100644 --- a/src/wrapped/wrappedicuuc67.c +++ b/src/wrapped/wrappedicuuc67.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc68.c b/src/wrapped/wrappedicuuc68.c index 7ad6583131..13a120f99f 100644 --- a/src/wrapped/wrappedicuuc68.c +++ b/src/wrapped/wrappedicuuc68.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc72.c b/src/wrapped/wrappedicuuc72.c index 2147909f6a..9a71af36d0 100644 --- a/src/wrapped/wrappedicuuc72.c +++ b/src/wrapped/wrappedicuuc72.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc73.c b/src/wrapped/wrappedicuuc73.c index 5eda8a97cf..92e6698c7d 100644 --- a/src/wrapped/wrappedicuuc73.c +++ b/src/wrapped/wrappedicuuc73.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc74.c b/src/wrapped/wrappedicuuc74.c index d76a48c50e..92dc67e7d7 100644 --- a/src/wrapped/wrappedicuuc74.c +++ b/src/wrapped/wrappedicuuc74.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc75.c b/src/wrapped/wrappedicuuc75.c index 484dc50d4a..e0984b73c5 100644 --- a/src/wrapped/wrappedicuuc75.c +++ b/src/wrapped/wrappedicuuc75.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedicuuc76.c b/src/wrapped/wrappedicuuc76.c index 3a2d4d7217..38f5891b13 100644 --- a/src/wrapped/wrappedicuuc76.c +++ b/src/wrapped/wrappedicuuc76.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedidn2.c b/src/wrapped/wrappedidn2.c index af6e9fade9..adef4e98dd 100644 --- a/src/wrapped/wrappedidn2.c +++ b/src/wrapped/wrappedidn2.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedkrb5.c b/src/wrapped/wrappedkrb5.c index efd2651e38..7419131f09 100644 --- a/src/wrapped/wrappedkrb5.c +++ b/src/wrapped/wrappedkrb5.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlber.c b/src/wrapped/wrappedlber.c index 5f76acb0c2..041e3cdccf 100644 --- a/src/wrapped/wrappedlber.c +++ b/src/wrapped/wrappedlber.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlcms2.c b/src/wrapped/wrappedlcms2.c index c95fc99698..5986d3913d 100644 --- a/src/wrapped/wrappedlcms2.c +++ b/src/wrapped/wrappedlcms2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedldapr.c b/src/wrapped/wrappedldapr.c index b51afe8601..0a37685e92 100644 --- a/src/wrapped/wrappedldapr.c +++ b/src/wrapped/wrappedldapr.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedldlinux.c b/src/wrapped/wrappedldlinux.c index d84d3228ea..9b6584ec5b 100644 --- a/src/wrapped/wrappedldlinux.c +++ b/src/wrapped/wrappedldlinux.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibasound.c b/src/wrapped/wrappedlibasound.c index f4663de516..33ea2d0721 100644 --- a/src/wrapped/wrappedlibasound.c +++ b/src/wrapped/wrappedlibasound.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedlibavcodec58.c b/src/wrapped/wrappedlibavcodec58.c index a805f07099..e7a50e04c2 100644 --- a/src/wrapped/wrappedlibavcodec58.c +++ b/src/wrapped/wrappedlibavcodec58.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibavformat58.c b/src/wrapped/wrappedlibavformat58.c index 6197466f93..8472477a53 100644 --- a/src/wrapped/wrappedlibavformat58.c +++ b/src/wrapped/wrappedlibavformat58.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibavutil56.c b/src/wrapped/wrappedlibavutil56.c index 0a70b375a3..7eb5e4601f 100644 --- a/src/wrapped/wrappedlibavutil56.c +++ b/src/wrapped/wrappedlibavutil56.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: MIT #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #define __STDC_WANT_LIB_EXT2__ 1 // for vasprintf diff --git a/src/wrapped/wrappedlibblas.c b/src/wrapped/wrappedlibblas.c index 32a559fea1..5b0b8ec694 100644 --- a/src/wrapped/wrappedlibblas.c +++ b/src/wrapped/wrappedlibblas.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibbsd.c b/src/wrapped/wrappedlibbsd.c index 3c1e9de839..5c1c7edcf0 100644 --- a/src/wrapped/wrappedlibbsd.c +++ b/src/wrapped/wrappedlibbsd.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 10c0f34d42..574d47237f 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1,7 +1,6 @@ // SPDX-License-Identifier: MIT #define _LARGEFILE_SOURCE 1 #define _FILE_OFFSET_BITS 64 -#define _GNU_SOURCE /* See feature_test_macros(7) */ #if !defined(TERMUX) && !defined(ANDROID) # if defined(__has_include) # if __has_include() diff --git a/src/wrapped/wrappedlibcmusl.c b/src/wrapped/wrappedlibcmusl.c index e66471df05..603beb4b33 100644 --- a/src/wrapped/wrappedlibcmusl.c +++ b/src/wrapped/wrappedlibcmusl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibcrypt.c b/src/wrapped/wrappedlibcrypt.c index f033d705ba..cf75b4da3e 100644 --- a/src/wrapped/wrappedlibcrypt.c +++ b/src/wrapped/wrappedlibcrypt.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibcups.c b/src/wrapped/wrappedlibcups.c index ecd7453772..33ae36a10b 100644 --- a/src/wrapped/wrappedlibcups.c +++ b/src/wrapped/wrappedlibcups.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibcupsimage.c b/src/wrapped/wrappedlibcupsimage.c index aee69284ab..2aa4f44b54 100644 --- a/src/wrapped/wrappedlibcupsimage.c +++ b/src/wrapped/wrappedlibcupsimage.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index 0d69d80ffd..38cfc2b58f 100644 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibdrm.c b/src/wrapped/wrappedlibdrm.c index 47a6f59c25..a7cc51041a 100644 --- a/src/wrapped/wrappedlibdrm.c +++ b/src/wrapped/wrappedlibdrm.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibdrmamdgpu.c b/src/wrapped/wrappedlibdrmamdgpu.c index 08778ec360..d8aa6b6268 100644 --- a/src/wrapped/wrappedlibdrmamdgpu.c +++ b/src/wrapped/wrappedlibdrmamdgpu.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibegl.c b/src/wrapped/wrappedlibegl.c index 23e16305a2..f0177990fb 100644 --- a/src/wrapped/wrappedlibegl.c +++ b/src/wrapped/wrappedlibegl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibform.c b/src/wrapped/wrappedlibform.c index e435049c1c..d995e4b978 100644 --- a/src/wrapped/wrappedlibform.c +++ b/src/wrapped/wrappedlibform.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibformw.c b/src/wrapped/wrappedlibformw.c index 0a8b178d30..9a51cb742e 100644 --- a/src/wrapped/wrappedlibformw.c +++ b/src/wrapped/wrappedlibformw.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibformw6.c b/src/wrapped/wrappedlibformw6.c index dbe66b9fd3..7a39583a81 100644 --- a/src/wrapped/wrappedlibformw6.c +++ b/src/wrapped/wrappedlibformw6.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibfuse.c b/src/wrapped/wrappedlibfuse.c index f062a5f4c7..f03eeda100 100644 --- a/src/wrapped/wrappedlibfuse.c +++ b/src/wrapped/wrappedlibfuse.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedlibgl.c b/src/wrapped/wrappedlibgl.c index f813ef2c90..7969aeba42 100644 --- a/src/wrapped/wrappedlibgl.c +++ b/src/wrapped/wrappedlibgl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibglu.c b/src/wrapped/wrappedlibglu.c index 0bc1f48f40..46d5134657 100644 --- a/src/wrapped/wrappedlibglu.c +++ b/src/wrapped/wrappedlibglu.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibglx.c b/src/wrapped/wrappedlibglx.c index 1d78a166cf..1021191032 100644 --- a/src/wrapped/wrappedlibglx.c +++ b/src/wrapped/wrappedlibglx.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibglxnvidia.c b/src/wrapped/wrappedlibglxnvidia.c index b61e57942f..b007693df0 100644 --- a/src/wrapped/wrappedlibglxnvidia.c +++ b/src/wrapped/wrappedlibglxnvidia.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibgpgme.c b/src/wrapped/wrappedlibgpgme.c index a3bfe92b73..f5df43cfe6 100644 --- a/src/wrapped/wrappedlibgpgme.c +++ b/src/wrapped/wrappedlibgpgme.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibharfbuzz.c b/src/wrapped/wrappedlibharfbuzz.c index 07d10cede7..6b5f9411fa 100644 --- a/src/wrapped/wrappedlibharfbuzz.c +++ b/src/wrapped/wrappedlibharfbuzz.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" #include "wrapper.h" diff --git a/src/wrapped/wrappedlibhogweed6.c b/src/wrapped/wrappedlibhogweed6.c index 6041a06b95..3e5f759ae7 100644 --- a/src/wrapped/wrappedlibhogweed6.c +++ b/src/wrapped/wrappedlibhogweed6.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibibus.c b/src/wrapped/wrappedlibibus.c index 2b1e638ef4..63cfbfa98f 100644 --- a/src/wrapped/wrappedlibibus.c +++ b/src/wrapped/wrappedlibibus.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibice.c b/src/wrapped/wrappedlibice.c index c09c6184fc..a4f4094f7a 100644 --- a/src/wrapped/wrappedlibice.c +++ b/src/wrapped/wrappedlibice.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedliblapack.c b/src/wrapped/wrappedliblapack.c index 9354fa15f0..ed3383a926 100644 --- a/src/wrapped/wrappedliblapack.c +++ b/src/wrapped/wrappedliblapack.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibm.c b/src/wrapped/wrappedlibm.c index af20b872aa..e35569a703 100644 --- a/src/wrapped/wrappedlibm.c +++ b/src/wrapped/wrappedlibm.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedlibmvec.c b/src/wrapped/wrappedlibmvec.c index 6a7cbaf934..39534c0897 100644 --- a/src/wrapped/wrappedlibmvec.c +++ b/src/wrapped/wrappedlibmvec.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedlibncurses.c b/src/wrapped/wrappedlibncurses.c index 93fd9a41c6..a0ca7522fe 100644 --- a/src/wrapped/wrappedlibncurses.c +++ b/src/wrapped/wrappedlibncurses.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibncurses6.c b/src/wrapped/wrappedlibncurses6.c index b9e5dcac00..9e77ba5c6a 100644 --- a/src/wrapped/wrappedlibncurses6.c +++ b/src/wrapped/wrappedlibncurses6.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibncursesw.c b/src/wrapped/wrappedlibncursesw.c index c7d9dba464..23e7ec53db 100644 --- a/src/wrapped/wrappedlibncursesw.c +++ b/src/wrapped/wrappedlibncursesw.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibncursesw6.c b/src/wrapped/wrappedlibncursesw6.c index efc9319e38..a306e7190d 100644 --- a/src/wrapped/wrappedlibncursesw6.c +++ b/src/wrapped/wrappedlibncursesw6.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibnettle8.c b/src/wrapped/wrappedlibnettle8.c index 11bb66ebbf..925fefaa6d 100644 --- a/src/wrapped/wrappedlibnettle8.c +++ b/src/wrapped/wrappedlibnettle8.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibnuma.c b/src/wrapped/wrappedlibnuma.c index 2921e3fceb..53933dd2af 100644 --- a/src/wrapped/wrappedlibnuma.c +++ b/src/wrapped/wrappedlibnuma.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibogg.c b/src/wrapped/wrappedlibogg.c index 42281b64f5..3a69d1e167 100644 --- a/src/wrapped/wrappedlibogg.c +++ b/src/wrapped/wrappedlibogg.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibomp.c b/src/wrapped/wrappedlibomp.c index 75bb90f8ee..e4dc3e0e22 100644 --- a/src/wrapped/wrappedlibomp.c +++ b/src/wrapped/wrappedlibomp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibopus.c b/src/wrapped/wrappedlibopus.c index 956c360664..1a9cdd3e5c 100644 --- a/src/wrapped/wrappedlibopus.c +++ b/src/wrapped/wrappedlibopus.c @@ -3,7 +3,6 @@ #include #include #include -#define _GNU_SOURCE #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibpanel.c b/src/wrapped/wrappedlibpanel.c index 3f7cd2b98e..ae3e38f3fc 100644 --- a/src/wrapped/wrappedlibpanel.c +++ b/src/wrapped/wrappedlibpanel.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibpci.c b/src/wrapped/wrappedlibpci.c index 24753ed726..8f5a671b47 100644 --- a/src/wrapped/wrappedlibpci.c +++ b/src/wrapped/wrappedlibpci.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibpcre.c b/src/wrapped/wrappedlibpcre.c index 248a7a85d6..143a674600 100644 --- a/src/wrapped/wrappedlibpcre.c +++ b/src/wrapped/wrappedlibpcre.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibpcre216.c b/src/wrapped/wrappedlibpcre216.c index 8e538f926c..ea499bffcb 100644 --- a/src/wrapped/wrappedlibpcre216.c +++ b/src/wrapped/wrappedlibpcre216.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibpthread.c b/src/wrapped/wrappedlibpthread.c index 91330f2994..be07612727 100644 --- a/src/wrapped/wrappedlibpthread.c +++ b/src/wrapped/wrappedlibpthread.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: MIT #define __USE_UNIX98 -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedlibresolv.c b/src/wrapped/wrappedlibresolv.c index 12dfe7bdfb..e99c02b01e 100644 --- a/src/wrapped/wrappedlibresolv.c +++ b/src/wrapped/wrappedlibresolv.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibrt.c b/src/wrapped/wrappedlibrt.c index 46e4c03c34..f1c2239ad2 100644 --- a/src/wrapped/wrappedlibrt.c +++ b/src/wrapped/wrappedlibrt.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedlibsm.c b/src/wrapped/wrappedlibsm.c index 7f34ec59d1..d89968f53f 100644 --- a/src/wrapped/wrappedlibsm.c +++ b/src/wrapped/wrappedlibsm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibsndfile.c b/src/wrapped/wrappedlibsndfile.c index ce5346d6a2..cb45a8efc4 100644 --- a/src/wrapped/wrappedlibsndfile.c +++ b/src/wrapped/wrappedlibsndfile.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibsqlite3.c b/src/wrapped/wrappedlibsqlite3.c index 192e0ac15e..fe709166b2 100644 --- a/src/wrapped/wrappedlibsqlite3.c +++ b/src/wrapped/wrappedlibsqlite3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibssh2.c b/src/wrapped/wrappedlibssh2.c index 6d552271c3..a4d8edd80c 100644 --- a/src/wrapped/wrappedlibssh2.c +++ b/src/wrapped/wrappedlibssh2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibssl.c b/src/wrapped/wrappedlibssl.c index 4fb8f5df6f..7e77474407 100644 --- a/src/wrapped/wrappedlibssl.c +++ b/src/wrapped/wrappedlibssl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibssl3.c b/src/wrapped/wrappedlibssl3.c index 1f9369517d..f9417531ee 100644 --- a/src/wrapped/wrappedlibssl3.c +++ b/src/wrapped/wrappedlibssl3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibtasn1.c b/src/wrapped/wrappedlibtasn1.c index 4291468068..0dd1d2648e 100644 --- a/src/wrapped/wrappedlibtasn1.c +++ b/src/wrapped/wrappedlibtasn1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibtiff5.c b/src/wrapped/wrappedlibtiff5.c index 2b661a7e46..6c72de86be 100644 --- a/src/wrapped/wrappedlibtiff5.c +++ b/src/wrapped/wrappedlibtiff5.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibtinfo.c b/src/wrapped/wrappedlibtinfo.c index f0485f3b02..1293685423 100644 --- a/src/wrapped/wrappedlibtinfo.c +++ b/src/wrapped/wrappedlibtinfo.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibtinfo6.c b/src/wrapped/wrappedlibtinfo6.c index af63d9520f..e2f9ed400f 100644 --- a/src/wrapped/wrappedlibtinfo6.c +++ b/src/wrapped/wrappedlibtinfo6.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibunistring2.c b/src/wrapped/wrappedlibunistring2.c index 53d4988a1c..8bdbb66909 100644 --- a/src/wrapped/wrappedlibunistring2.c +++ b/src/wrapped/wrappedlibunistring2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibusb1.c b/src/wrapped/wrappedlibusb1.c index cf23b6f78b..5b2bf3c699 100644 --- a/src/wrapped/wrappedlibusb1.c +++ b/src/wrapped/wrappedlibusb1.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibuuid.c b/src/wrapped/wrappedlibuuid.c index 51690304d5..0ab12666b4 100644 --- a/src/wrapped/wrappedlibuuid.c +++ b/src/wrapped/wrappedlibuuid.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibva.c b/src/wrapped/wrappedlibva.c index a51bf6a0af..3d43494011 100644 --- a/src/wrapped/wrappedlibva.c +++ b/src/wrapped/wrappedlibva.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvadrm.c b/src/wrapped/wrappedlibvadrm.c index 9ff2dbfea1..51ea4b1a35 100644 --- a/src/wrapped/wrappedlibvadrm.c +++ b/src/wrapped/wrappedlibvadrm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvawayland.c b/src/wrapped/wrappedlibvawayland.c index 0a940e9191..454320b7a1 100644 --- a/src/wrapped/wrappedlibvawayland.c +++ b/src/wrapped/wrappedlibvawayland.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvax11.c b/src/wrapped/wrappedlibvax11.c index 174b5e189e..af0669fbe5 100644 --- a/src/wrapped/wrappedlibvax11.c +++ b/src/wrapped/wrappedlibvax11.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvdpau.c b/src/wrapped/wrappedlibvdpau.c index 358438ce91..52b3632f13 100644 --- a/src/wrapped/wrappedlibvdpau.c +++ b/src/wrapped/wrappedlibvdpau.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvorbis.c b/src/wrapped/wrappedlibvorbis.c index e9e896e302..478030d6a9 100644 --- a/src/wrapped/wrappedlibvorbis.c +++ b/src/wrapped/wrappedlibvorbis.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibvpx.c b/src/wrapped/wrappedlibvpx.c index 1d10a6c6b7..97f6bd3e75 100644 --- a/src/wrapped/wrappedlibvpx.c +++ b/src/wrapped/wrappedlibvpx.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibx11.c b/src/wrapped/wrappedlibx11.c index e31c6c52e8..40281ff85e 100644 --- a/src/wrapped/wrappedlibx11.c +++ b/src/wrapped/wrappedlibx11.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibx11xcb.c b/src/wrapped/wrappedlibx11xcb.c index 3fb4e54d3a..075de6e1cf 100644 --- a/src/wrapped/wrappedlibx11xcb.c +++ b/src/wrapped/wrappedlibx11xcb.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxau.c b/src/wrapped/wrappedlibxau.c index c1236771fa..5803acccc7 100644 --- a/src/wrapped/wrappedlibxau.c +++ b/src/wrapped/wrappedlibxau.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxaw.c b/src/wrapped/wrappedlibxaw.c index ae5e48257f..c5c2d4db94 100644 --- a/src/wrapped/wrappedlibxaw.c +++ b/src/wrapped/wrappedlibxaw.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcb.c b/src/wrapped/wrappedlibxcb.c index 6ba0063192..0241f0b368 100644 --- a/src/wrapped/wrappedlibxcb.c +++ b/src/wrapped/wrappedlibxcb.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbcursor.c b/src/wrapped/wrappedlibxcbcursor.c index 6c92e9c68d..10fee4fad1 100644 --- a/src/wrapped/wrappedlibxcbcursor.c +++ b/src/wrapped/wrappedlibxcbcursor.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbdri2.c b/src/wrapped/wrappedlibxcbdri2.c index 59110263f0..92f46d6826 100644 --- a/src/wrapped/wrappedlibxcbdri2.c +++ b/src/wrapped/wrappedlibxcbdri2.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibxcbdri3.c b/src/wrapped/wrappedlibxcbdri3.c index 9969f507b2..95d01d9a9b 100644 --- a/src/wrapped/wrappedlibxcbdri3.c +++ b/src/wrapped/wrappedlibxcbdri3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlibxcbglx.c b/src/wrapped/wrappedlibxcbglx.c index 4737db47dc..3dc021b348 100644 --- a/src/wrapped/wrappedlibxcbglx.c +++ b/src/wrapped/wrappedlibxcbglx.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbicccm.c b/src/wrapped/wrappedlibxcbicccm.c index 89d90c56d7..7b0f46ce77 100644 --- a/src/wrapped/wrappedlibxcbicccm.c +++ b/src/wrapped/wrappedlibxcbicccm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbimage.c b/src/wrapped/wrappedlibxcbimage.c index 602a91aa23..9c796eebde 100644 --- a/src/wrapped/wrappedlibxcbimage.c +++ b/src/wrapped/wrappedlibxcbimage.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbkeysyms.c b/src/wrapped/wrappedlibxcbkeysyms.c index 21993bd931..6ee2db016f 100644 --- a/src/wrapped/wrappedlibxcbkeysyms.c +++ b/src/wrapped/wrappedlibxcbkeysyms.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbpresent.c b/src/wrapped/wrappedlibxcbpresent.c index 516178c7c5..c483318367 100644 --- a/src/wrapped/wrappedlibxcbpresent.c +++ b/src/wrapped/wrappedlibxcbpresent.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbrandr.c b/src/wrapped/wrappedlibxcbrandr.c index 4e8f8578e9..b24afae303 100644 --- a/src/wrapped/wrappedlibxcbrandr.c +++ b/src/wrapped/wrappedlibxcbrandr.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbrender.c b/src/wrapped/wrappedlibxcbrender.c index 3a867fbc43..0e7ff71b23 100644 --- a/src/wrapped/wrappedlibxcbrender.c +++ b/src/wrapped/wrappedlibxcbrender.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbrenderutil.c b/src/wrapped/wrappedlibxcbrenderutil.c index 27573195ec..8af6432158 100644 --- a/src/wrapped/wrappedlibxcbrenderutil.c +++ b/src/wrapped/wrappedlibxcbrenderutil.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbres.c b/src/wrapped/wrappedlibxcbres.c index 972a185789..547f86da8b 100644 --- a/src/wrapped/wrappedlibxcbres.c +++ b/src/wrapped/wrappedlibxcbres.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbshape.c b/src/wrapped/wrappedlibxcbshape.c index 501da8a1be..e11ed2458e 100644 --- a/src/wrapped/wrappedlibxcbshape.c +++ b/src/wrapped/wrappedlibxcbshape.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbshm.c b/src/wrapped/wrappedlibxcbshm.c index 1514236e70..1144356dc4 100644 --- a/src/wrapped/wrappedlibxcbshm.c +++ b/src/wrapped/wrappedlibxcbshm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbsync.c b/src/wrapped/wrappedlibxcbsync.c index ec633c423c..97e21e8bbb 100644 --- a/src/wrapped/wrappedlibxcbsync.c +++ b/src/wrapped/wrappedlibxcbsync.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbutil.c b/src/wrapped/wrappedlibxcbutil.c index f453aac79a..cdc5df9fb2 100644 --- a/src/wrapped/wrappedlibxcbutil.c +++ b/src/wrapped/wrappedlibxcbutil.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbxfixes.c b/src/wrapped/wrappedlibxcbxfixes.c index da2ace20d2..bd67a0ae1f 100644 --- a/src/wrapped/wrappedlibxcbxfixes.c +++ b/src/wrapped/wrappedlibxcbxfixes.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbxinerama.c b/src/wrapped/wrappedlibxcbxinerama.c index 76835fdf25..f611973ea2 100644 --- a/src/wrapped/wrappedlibxcbxinerama.c +++ b/src/wrapped/wrappedlibxcbxinerama.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbxinput.c b/src/wrapped/wrappedlibxcbxinput.c index b5a3397638..af80dadc3e 100644 --- a/src/wrapped/wrappedlibxcbxinput.c +++ b/src/wrapped/wrappedlibxcbxinput.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbxkb.c b/src/wrapped/wrappedlibxcbxkb.c index 3f0751c4f9..ea656e90e6 100644 --- a/src/wrapped/wrappedlibxcbxkb.c +++ b/src/wrapped/wrappedlibxcbxkb.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcbxtest.c b/src/wrapped/wrappedlibxcbxtest.c index 23e6c39fe8..372e38099e 100644 --- a/src/wrapped/wrappedlibxcbxtest.c +++ b/src/wrapped/wrappedlibxcbxtest.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcomposite.c b/src/wrapped/wrappedlibxcomposite.c index ef25c209d6..de5918bbb6 100644 --- a/src/wrapped/wrappedlibxcomposite.c +++ b/src/wrapped/wrappedlibxcomposite.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxcursor.c b/src/wrapped/wrappedlibxcursor.c index fc5bdd564b..009fa38424 100644 --- a/src/wrapped/wrappedlibxcursor.c +++ b/src/wrapped/wrappedlibxcursor.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxdamage.c b/src/wrapped/wrappedlibxdamage.c index 3d7510e4b2..438b43438f 100644 --- a/src/wrapped/wrappedlibxdamage.c +++ b/src/wrapped/wrappedlibxdamage.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxdmcp.c b/src/wrapped/wrappedlibxdmcp.c index 0a32487a0a..e94cc36cc1 100644 --- a/src/wrapped/wrappedlibxdmcp.c +++ b/src/wrapped/wrappedlibxdmcp.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxext.c b/src/wrapped/wrappedlibxext.c index 4f1d19d944..ef257f2e51 100644 --- a/src/wrapped/wrappedlibxext.c +++ b/src/wrapped/wrappedlibxext.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxfixes.c b/src/wrapped/wrappedlibxfixes.c index c981c2667d..74cac9bbc3 100644 --- a/src/wrapped/wrappedlibxfixes.c +++ b/src/wrapped/wrappedlibxfixes.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxft.c b/src/wrapped/wrappedlibxft.c index cd2590c1b9..b27f746d11 100644 --- a/src/wrapped/wrappedlibxft.c +++ b/src/wrapped/wrappedlibxft.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxi.c b/src/wrapped/wrappedlibxi.c index 34105a7334..cb2b2b5a3d 100644 --- a/src/wrapped/wrappedlibxi.c +++ b/src/wrapped/wrappedlibxi.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxmu.c b/src/wrapped/wrappedlibxmu.c index 56ec97a7fd..d862846d53 100644 --- a/src/wrapped/wrappedlibxmu.c +++ b/src/wrapped/wrappedlibxmu.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxpm.c b/src/wrapped/wrappedlibxpm.c index f3fef5c4eb..975359a50e 100644 --- a/src/wrapped/wrappedlibxpm.c +++ b/src/wrapped/wrappedlibxpm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxpresent.c b/src/wrapped/wrappedlibxpresent.c index d73c668f09..7b56275cd9 100644 --- a/src/wrapped/wrappedlibxpresent.c +++ b/src/wrapped/wrappedlibxpresent.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxrandr.c b/src/wrapped/wrappedlibxrandr.c index ddc40c2eb3..cc00de4c79 100644 --- a/src/wrapped/wrappedlibxrandr.c +++ b/src/wrapped/wrappedlibxrandr.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxrender.c b/src/wrapped/wrappedlibxrender.c index ba79706c03..6983b408a0 100644 --- a/src/wrapped/wrappedlibxrender.c +++ b/src/wrapped/wrappedlibxrender.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxss.c b/src/wrapped/wrappedlibxss.c index 507216e166..06d4cd6e39 100644 --- a/src/wrapped/wrappedlibxss.c +++ b/src/wrapped/wrappedlibxss.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxt.c b/src/wrapped/wrappedlibxt.c index 4e305ee42a..0bf3056fd1 100644 --- a/src/wrapped/wrappedlibxt.c +++ b/src/wrapped/wrappedlibxt.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxtst.c b/src/wrapped/wrappedlibxtst.c index e17621a336..c18842a078 100644 --- a/src/wrapped/wrappedlibxtst.c +++ b/src/wrapped/wrappedlibxtst.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibxxf86vm.c b/src/wrapped/wrappedlibxxf86vm.c index d5d04c3326..104874386e 100644 --- a/src/wrapped/wrappedlibxxf86vm.c +++ b/src/wrapped/wrappedlibxxf86vm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlibz.c b/src/wrapped/wrappedlibz.c index e57fb21c12..2daf998e18 100644 --- a/src/wrapped/wrappedlibz.c +++ b/src/wrapped/wrappedlibz.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedlz4.c b/src/wrapped/wrappedlz4.c index 1b789e75e0..5e28679492 100644 --- a/src/wrapped/wrappedlz4.c +++ b/src/wrapped/wrappedlz4.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedlzma.c b/src/wrapped/wrappedlzma.c index 6ccce691c3..0c19775ed7 100644 --- a/src/wrapped/wrappedlzma.c +++ b/src/wrapped/wrappedlzma.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedmimalloc.c b/src/wrapped/wrappedmimalloc.c index 242fd29d74..ce9b4409f6 100644 --- a/src/wrapped/wrappedmimalloc.c +++ b/src/wrapped/wrappedmimalloc.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedmpg123.c b/src/wrapped/wrappedmpg123.c index 1f5fb47ed0..ea6f3d1666 100644 --- a/src/wrapped/wrappedmpg123.c +++ b/src/wrapped/wrappedmpg123.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappednotify.c b/src/wrapped/wrappednotify.c index 0d9954e59c..27a2ee79a6 100644 --- a/src/wrapped/wrappednotify.c +++ b/src/wrapped/wrappednotify.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappednsl.c b/src/wrapped/wrappednsl.c index fa47f9ec56..c410be90d9 100644 --- a/src/wrapped/wrappednsl.c +++ b/src/wrapped/wrappednsl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappednspr4.c b/src/wrapped/wrappednspr4.c index 689dde185f..6023f54a4a 100644 --- a/src/wrapped/wrappednspr4.c +++ b/src/wrapped/wrappednspr4.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappednss3.c b/src/wrapped/wrappednss3.c index 39425ff55f..5d3fa46252 100644 --- a/src/wrapped/wrappednss3.c +++ b/src/wrapped/wrappednss3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappednssutil3.c b/src/wrapped/wrappednssutil3.c index 045b0cb5a2..dba8d06699 100644 --- a/src/wrapped/wrappednssutil3.c +++ b/src/wrapped/wrappednssutil3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappednvml.c b/src/wrapped/wrappednvml.c index 21acd75cc6..9863535bc9 100644 --- a/src/wrapped/wrappednvml.c +++ b/src/wrapped/wrappednvml.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedopenal.c b/src/wrapped/wrappedopenal.c index 76eb0f81c6..3f56b888ac 100644 --- a/src/wrapped/wrappedopenal.c +++ b/src/wrapped/wrappedopenal.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedopencl.c b/src/wrapped/wrappedopencl.c index 881b640a56..806b31e1e7 100644 --- a/src/wrapped/wrappedopencl.c +++ b/src/wrapped/wrappedopencl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedp11kit.c b/src/wrapped/wrappedp11kit.c index 490d96fdfc..ef8b335059 100644 --- a/src/wrapped/wrappedp11kit.c +++ b/src/wrapped/wrappedp11kit.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpam.c b/src/wrapped/wrappedpam.c index 7b5f22a524..31a1c5f92c 100644 --- a/src/wrapped/wrappedpam.c +++ b/src/wrapped/wrappedpam.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpango.c b/src/wrapped/wrappedpango.c index b5c4a5a5fe..86de1792d4 100644 --- a/src/wrapped/wrappedpango.c +++ b/src/wrapped/wrappedpango.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpangocairo.c b/src/wrapped/wrappedpangocairo.c index 89a60438f7..eb6bfb8085 100644 --- a/src/wrapped/wrappedpangocairo.c +++ b/src/wrapped/wrappedpangocairo.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpangoft2.c b/src/wrapped/wrappedpangoft2.c index 7fb9d7077d..182e8a1b95 100644 --- a/src/wrapped/wrappedpangoft2.c +++ b/src/wrapped/wrappedpangoft2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpcap.c b/src/wrapped/wrappedpcap.c index 188301b31e..b0661f3a1e 100644 --- a/src/wrapped/wrappedpcap.c +++ b/src/wrapped/wrappedpcap.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedpixman1.c b/src/wrapped/wrappedpixman1.c index 02b2c8a8dc..77b029a0d4 100644 --- a/src/wrapped/wrappedpixman1.c +++ b/src/wrapped/wrappedpixman1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedplc4.c b/src/wrapped/wrappedplc4.c index 0987cf42e0..b4a083e9aa 100644 --- a/src/wrapped/wrappedplc4.c +++ b/src/wrapped/wrappedplc4.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedplds4.c b/src/wrapped/wrappedplds4.c index 4fbcd07e37..0b5c39830e 100644 --- a/src/wrapped/wrappedplds4.c +++ b/src/wrapped/wrappedplds4.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpng16.c b/src/wrapped/wrappedpng16.c index 98db877730..c083794578 100644 --- a/src/wrapped/wrappedpng16.c +++ b/src/wrapped/wrappedpng16.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedproxy.c b/src/wrapped/wrappedproxy.c index c423b81b79..97f4f745da 100644 --- a/src/wrapped/wrappedproxy.c +++ b/src/wrapped/wrappedproxy.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpsl5.c b/src/wrapped/wrappedpsl5.c index 9c196b281e..7a548604e9 100644 --- a/src/wrapped/wrappedpsl5.c +++ b/src/wrapped/wrappedpsl5.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpulse.c b/src/wrapped/wrappedpulse.c index af4dc3c721..d0a0418769 100644 --- a/src/wrapped/wrappedpulse.c +++ b/src/wrapped/wrappedpulse.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedpulsemainloopglib.c b/src/wrapped/wrappedpulsemainloopglib.c index 3e03e05f5c..72e5c9abdc 100644 --- a/src/wrapped/wrappedpulsemainloopglib.c +++ b/src/wrapped/wrappedpulsemainloopglib.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedpulsesimple.c b/src/wrapped/wrappedpulsesimple.c index 26f6d9339c..1f60dca50f 100644 --- a/src/wrapped/wrappedpulsesimple.c +++ b/src/wrapped/wrappedpulsesimple.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1.c b/src/wrapped/wrappedsdl1.c index a257d4b027..a6c0acba96 100644 --- a/src/wrapped/wrappedsdl1.c +++ b/src/wrapped/wrappedsdl1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1image.c b/src/wrapped/wrappedsdl1image.c index 39522662a2..bcbff5522d 100644 --- a/src/wrapped/wrappedsdl1image.c +++ b/src/wrapped/wrappedsdl1image.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1mixer.c b/src/wrapped/wrappedsdl1mixer.c index 4ea78e97d0..da53b37fe1 100644 --- a/src/wrapped/wrappedsdl1mixer.c +++ b/src/wrapped/wrappedsdl1mixer.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1net.c b/src/wrapped/wrappedsdl1net.c index f29aeb5362..244330d643 100644 --- a/src/wrapped/wrappedsdl1net.c +++ b/src/wrapped/wrappedsdl1net.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1sound.c b/src/wrapped/wrappedsdl1sound.c index 760a06a662..3538ecf459 100644 --- a/src/wrapped/wrappedsdl1sound.c +++ b/src/wrapped/wrappedsdl1sound.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl1ttf.c b/src/wrapped/wrappedsdl1ttf.c index 79c9d784d7..051847e806 100644 --- a/src/wrapped/wrappedsdl1ttf.c +++ b/src/wrapped/wrappedsdl1ttf.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl2.c b/src/wrapped/wrappedsdl2.c index 7f482e6da1..bee79df9ef 100644 --- a/src/wrapped/wrappedsdl2.c +++ b/src/wrapped/wrappedsdl2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedsdl2image.c b/src/wrapped/wrappedsdl2image.c index 2c15efdfef..8ebcc3aebc 100644 --- a/src/wrapped/wrappedsdl2image.c +++ b/src/wrapped/wrappedsdl2image.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl2mixer.c b/src/wrapped/wrappedsdl2mixer.c index 6b35e24c1e..2864dac29e 100644 --- a/src/wrapped/wrappedsdl2mixer.c +++ b/src/wrapped/wrappedsdl2mixer.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl2net.c b/src/wrapped/wrappedsdl2net.c index 05039c1552..28ccf6ed3c 100644 --- a/src/wrapped/wrappedsdl2net.c +++ b/src/wrapped/wrappedsdl2net.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl2ttf.c b/src/wrapped/wrappedsdl2ttf.c index 71951b5667..55a4cb4b30 100644 --- a/src/wrapped/wrappedsdl2ttf.c +++ b/src/wrapped/wrappedsdl2ttf.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl3.c b/src/wrapped/wrappedsdl3.c index b71d4bde7e..1bdd34a6ff 100644 --- a/src/wrapped/wrappedsdl3.c +++ b/src/wrapped/wrappedsdl3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsdl3ttf.c b/src/wrapped/wrappedsdl3ttf.c index 7efcfd3bd6..836d66acff 100644 --- a/src/wrapped/wrappedsdl3ttf.c +++ b/src/wrapped/wrappedsdl3ttf.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsecret1.c b/src/wrapped/wrappedsecret1.c index 058b91991c..5cd189eed8 100644 --- a/src/wrapped/wrappedsecret1.c +++ b/src/wrapped/wrappedsecret1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedselinux.c b/src/wrapped/wrappedselinux.c index 038b771c75..426607dcff 100644 --- a/src/wrapped/wrappedselinux.c +++ b/src/wrapped/wrappedselinux.c @@ -5,7 +5,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsmbclient.c b/src/wrapped/wrappedsmbclient.c index 7d4bbae252..659c6f2694 100644 --- a/src/wrapped/wrappedsmbclient.c +++ b/src/wrapped/wrappedsmbclient.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsmime3.c b/src/wrapped/wrappedsmime3.c index 49a010332a..d6f19dd8ff 100644 --- a/src/wrapped/wrappedsmime3.c +++ b/src/wrapped/wrappedsmime3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsmpeg.c b/src/wrapped/wrappedsmpeg.c index f5242dbda0..58a408d895 100644 --- a/src/wrapped/wrappedsmpeg.c +++ b/src/wrapped/wrappedsmpeg.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsmpeg2.c b/src/wrapped/wrappedsmpeg2.c index 0c06c91695..6985a7383a 100644 --- a/src/wrapped/wrappedsmpeg2.c +++ b/src/wrapped/wrappedsmpeg2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsoftokn3.c b/src/wrapped/wrappedsoftokn3.c index 5115a3f785..feee9554f1 100644 --- a/src/wrapped/wrappedsoftokn3.c +++ b/src/wrapped/wrappedsoftokn3.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped/wrappedssh4.c b/src/wrapped/wrappedssh4.c index 6c9a1757a6..4613f7c7d7 100644 --- a/src/wrapped/wrappedssh4.c +++ b/src/wrapped/wrappedssh4.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedssl3.c b/src/wrapped/wrappedssl3.c index 0f61b6f513..481a01b4d6 100644 --- a/src/wrapped/wrappedssl3.c +++ b/src/wrapped/wrappedssl3.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedsystemd.c b/src/wrapped/wrappedsystemd.c index edb90fe770..ce9d942299 100644 --- a/src/wrapped/wrappedsystemd.c +++ b/src/wrapped/wrappedsystemd.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedtbbbind.c b/src/wrapped/wrappedtbbbind.c index cf8f94e74e..0ba838c9ea 100644 --- a/src/wrapped/wrappedtbbbind.c +++ b/src/wrapped/wrappedtbbbind.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedtbbmalloc.c b/src/wrapped/wrappedtbbmalloc.c index f3563a16f8..822c65af0b 100644 --- a/src/wrapped/wrappedtbbmalloc.c +++ b/src/wrapped/wrappedtbbmalloc.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedtbbmallocproxy.c b/src/wrapped/wrappedtbbmallocproxy.c index 78ee5e7b16..fb803969ff 100644 --- a/src/wrapped/wrappedtbbmallocproxy.c +++ b/src/wrapped/wrappedtbbmallocproxy.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedtcmallocminimal.c b/src/wrapped/wrappedtcmallocminimal.c index cd1ed3ea2b..f1912ac579 100644 --- a/src/wrapped/wrappedtcmallocminimal.c +++ b/src/wrapped/wrappedtcmallocminimal.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedtermuxexec.c b/src/wrapped/wrappedtermuxexec.c index 0fdf9f1103..f7fcdda42e 100644 --- a/src/wrapped/wrappedtermuxexec.c +++ b/src/wrapped/wrappedtermuxexec.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedudev0.c b/src/wrapped/wrappedudev0.c index 65eba557cf..cf7aecb602 100644 --- a/src/wrapped/wrappedudev0.c +++ b/src/wrapped/wrappedudev0.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedudev1.c b/src/wrapped/wrappedudev1.c index 57304fe96a..58da263499 100644 --- a/src/wrapped/wrappedudev1.c +++ b/src/wrapped/wrappedudev1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedunwind.c b/src/wrapped/wrappedunwind.c index aae8965a19..fa99bb80ce 100644 --- a/src/wrapped/wrappedunwind.c +++ b/src/wrapped/wrappedunwind.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped/wrappedutil.c b/src/wrapped/wrappedutil.c index 456a79b5dc..8d09a6dd62 100644 --- a/src/wrapped/wrappedutil.c +++ b/src/wrapped/wrappedutil.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedvorbisfile.c b/src/wrapped/wrappedvorbisfile.c index 721b59d472..4a86f84bac 100644 --- a/src/wrapped/wrappedvorbisfile.c +++ b/src/wrapped/wrappedvorbisfile.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedvulkan.c b/src/wrapped/wrappedvulkan.c index adf0b938da..a88d7e30f9 100644 --- a/src/wrapped/wrappedvulkan.c +++ b/src/wrapped/wrappedvulkan.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedwaylandclient.c b/src/wrapped/wrappedwaylandclient.c index ae548714ca..c052e47079 100644 --- a/src/wrapped/wrappedwaylandclient.c +++ b/src/wrapped/wrappedwaylandclient.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedwaylandcursor.c b/src/wrapped/wrappedwaylandcursor.c index fa2ad8b5fd..e2fcd06d61 100644 --- a/src/wrapped/wrappedwaylandcursor.c +++ b/src/wrapped/wrappedwaylandcursor.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedwaylandegl.c b/src/wrapped/wrappedwaylandegl.c index 57da6b2756..316614639b 100644 --- a/src/wrapped/wrappedwaylandegl.c +++ b/src/wrapped/wrappedwaylandegl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxinerama.c b/src/wrapped/wrappedxinerama.c index c83211a35f..9ddf458ced 100644 --- a/src/wrapped/wrappedxinerama.c +++ b/src/wrapped/wrappedxinerama.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxkbcommon.c b/src/wrapped/wrappedxkbcommon.c index 96c0d4aab5..845163df73 100644 --- a/src/wrapped/wrappedxkbcommon.c +++ b/src/wrapped/wrappedxkbcommon.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxkbcommonx11.c b/src/wrapped/wrappedxkbcommonx11.c index 91aa6d5b9d..1546c99193 100644 --- a/src/wrapped/wrappedxkbcommonx11.c +++ b/src/wrapped/wrappedxkbcommonx11.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxkbfile.c b/src/wrapped/wrappedxkbfile.c index 7b5130e6d4..04c9c418af 100644 --- a/src/wrapped/wrappedxkbfile.c +++ b/src/wrapped/wrappedxkbfile.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxkbregistry.c b/src/wrapped/wrappedxkbregistry.c index 957fc28486..81579623d2 100644 --- a/src/wrapped/wrappedxkbregistry.c +++ b/src/wrapped/wrappedxkbregistry.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxml2.c b/src/wrapped/wrappedxml2.c index 799e636768..26e9aece47 100644 --- a/src/wrapped/wrappedxml2.c +++ b/src/wrapped/wrappedxml2.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped/wrappedxshmfence.c b/src/wrapped/wrappedxshmfence.c index 8baad58a55..3b45991f56 100644 --- a/src/wrapped/wrappedxshmfence.c +++ b/src/wrapped/wrappedxshmfence.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedxslt.c b/src/wrapped/wrappedxslt.c index e9dbb6ce93..fe299d6b64 100644 --- a/src/wrapped/wrappedxslt.c +++ b/src/wrapped/wrappedxslt.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped/wrappedzstd.c b/src/wrapped/wrappedzstd.c index d0495f4db6..fdb0164663 100644 --- a/src/wrapped/wrappedzstd.c +++ b/src/wrapped/wrappedzstd.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedblkid.c b/src/wrapped32/wrappedblkid.c index 5e007e5a18..8edad5e42c 100644 --- a/src/wrapped32/wrappedblkid.c +++ b/src/wrapped32/wrappedblkid.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedcairo.c b/src/wrapped32/wrappedcairo.c index 389a688256..c93512b554 100644 --- a/src/wrapped32/wrappedcairo.c +++ b/src/wrapped32/wrappedcairo.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedcurl.c b/src/wrapped32/wrappedcurl.c index 82fc7676cf..af04712549 100644 --- a/src/wrapped32/wrappedcurl.c +++ b/src/wrapped32/wrappedcurl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappeddbus.c b/src/wrapped32/wrappeddbus.c index fc12e41eb8..2f3a9983e9 100644 --- a/src/wrapped32/wrappeddbus.c +++ b/src/wrapped32/wrappeddbus.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedexpat.c b/src/wrapped32/wrappedexpat.c index 5c7a7865f0..b190d52360 100644 --- a/src/wrapped32/wrappedexpat.c +++ b/src/wrapped32/wrappedexpat.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedfontconfig.c b/src/wrapped32/wrappedfontconfig.c index c88b1a9321..d0bd6cbeb3 100644 --- a/src/wrapped32/wrappedfontconfig.c +++ b/src/wrapped32/wrappedfontconfig.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedfreetype.c b/src/wrapped32/wrappedfreetype.c index f7e0f26bfc..702d876a4f 100644 --- a/src/wrapped32/wrappedfreetype.c +++ b/src/wrapped32/wrappedfreetype.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedgbm.c b/src/wrapped32/wrappedgbm.c index cb8f549633..2ffaa6f041 100644 --- a/src/wrapped32/wrappedgbm.c +++ b/src/wrapped32/wrappedgbm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedgnutls.c b/src/wrapped32/wrappedgnutls.c index ac7cfbb393..b48a55b022 100644 --- a/src/wrapped32/wrappedgnutls.c +++ b/src/wrapped32/wrappedgnutls.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedldlinux.c b/src/wrapped32/wrappedldlinux.c index 869d60d9fb..355af9f7e0 100755 --- a/src/wrapped32/wrappedldlinux.c +++ b/src/wrapped32/wrappedldlinux.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedlibasound.c b/src/wrapped32/wrappedlibasound.c index f001b2e1d4..ebc280c45f 100644 --- a/src/wrapped32/wrappedlibasound.c +++ b/src/wrapped32/wrappedlibasound.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index ae0af7f56e..adf429aeeb 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedlibcups.c b/src/wrapped32/wrappedlibcups.c index 9ede52102f..4b49afe717 100644 --- a/src/wrapped32/wrappedlibcups.c +++ b/src/wrapped32/wrappedlibcups.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibdl.c b/src/wrapped32/wrappedlibdl.c index 12039ad6f6..379f588fc9 100755 --- a/src/wrapped32/wrappedlibdl.c +++ b/src/wrapped32/wrappedlibdl.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedlibdrm.c b/src/wrapped32/wrappedlibdrm.c index d414763fec..55cb943d15 100644 --- a/src/wrapped32/wrappedlibdrm.c +++ b/src/wrapped32/wrappedlibdrm.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedlibegl.c b/src/wrapped32/wrappedlibegl.c index 3f72233cab..2e96e90279 100644 --- a/src/wrapped32/wrappedlibegl.c +++ b/src/wrapped32/wrappedlibegl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibgl.c b/src/wrapped32/wrappedlibgl.c index 06ad51e007..875c3a504d 100644 --- a/src/wrapped32/wrappedlibgl.c +++ b/src/wrapped32/wrappedlibgl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibglu.c b/src/wrapped32/wrappedlibglu.c index 8558648d6c..c8aa21eba8 100644 --- a/src/wrapped32/wrappedlibglu.c +++ b/src/wrapped32/wrappedlibglu.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibglx.c b/src/wrapped32/wrappedlibglx.c index 305fd8478a..76ce612cfa 100644 --- a/src/wrapped32/wrappedlibglx.c +++ b/src/wrapped32/wrappedlibglx.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibglxnvidia.c b/src/wrapped32/wrappedlibglxnvidia.c index e5e8a23c13..b0543864bf 100644 --- a/src/wrapped32/wrappedlibglxnvidia.c +++ b/src/wrapped32/wrappedlibglxnvidia.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibm.c b/src/wrapped32/wrappedlibm.c index dd0a6ab37c..07bda89abd 100755 --- a/src/wrapped32/wrappedlibm.c +++ b/src/wrapped32/wrappedlibm.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include diff --git a/src/wrapped32/wrappedlibogg.c b/src/wrapped32/wrappedlibogg.c index 877b03853a..1c32ebde57 100644 --- a/src/wrapped32/wrappedlibogg.c +++ b/src/wrapped32/wrappedlibogg.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibpthread.c b/src/wrapped32/wrappedlibpthread.c index 7c477c57a8..1640580ad6 100755 --- a/src/wrapped32/wrappedlibpthread.c +++ b/src/wrapped32/wrappedlibpthread.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped32/wrappedlibresolv.c b/src/wrapped32/wrappedlibresolv.c index cc06305642..0f4af9ebed 100644 --- a/src/wrapped32/wrappedlibresolv.c +++ b/src/wrapped32/wrappedlibresolv.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped32/wrappedlibrt.c b/src/wrapped32/wrappedlibrt.c index 0a72043d0c..66e12e8d69 100755 --- a/src/wrapped32/wrappedlibrt.c +++ b/src/wrapped32/wrappedlibrt.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE #include #include #include diff --git a/src/wrapped32/wrappedlibuuid.c b/src/wrapped32/wrappedlibuuid.c index df5f67fa3d..55c79094a7 100644 --- a/src/wrapped32/wrappedlibuuid.c +++ b/src/wrapped32/wrappedlibuuid.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibvdpau.c b/src/wrapped32/wrappedlibvdpau.c index 5675e113d8..da26c211e6 100644 --- a/src/wrapped32/wrappedlibvdpau.c +++ b/src/wrapped32/wrappedlibvdpau.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibvorbis.c b/src/wrapped32/wrappedlibvorbis.c index e3d05c1b6d..d86eaaeaed 100644 --- a/src/wrapped32/wrappedlibvorbis.c +++ b/src/wrapped32/wrappedlibvorbis.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibx11.c b/src/wrapped32/wrappedlibx11.c index 34d5be1c95..71053b2ca5 100644 --- a/src/wrapped32/wrappedlibx11.c +++ b/src/wrapped32/wrappedlibx11.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibx11xcb.c b/src/wrapped32/wrappedlibx11xcb.c index be3cfc4a3e..e58f04462a 100644 --- a/src/wrapped32/wrappedlibx11xcb.c +++ b/src/wrapped32/wrappedlibx11xcb.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxcb.c b/src/wrapped32/wrappedlibxcb.c index 4b676b7c8f..d070f9020e 100644 --- a/src/wrapped32/wrappedlibxcb.c +++ b/src/wrapped32/wrappedlibxcb.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxcbres.c b/src/wrapped32/wrappedlibxcbres.c index 8bffcf265f..863702e254 100644 --- a/src/wrapped32/wrappedlibxcbres.c +++ b/src/wrapped32/wrappedlibxcbres.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxcomposite.c b/src/wrapped32/wrappedlibxcomposite.c index 38dd960356..eb5ca3411b 100644 --- a/src/wrapped32/wrappedlibxcomposite.c +++ b/src/wrapped32/wrappedlibxcomposite.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxcursor.c b/src/wrapped32/wrappedlibxcursor.c index e0762b9cac..8f714a9c17 100644 --- a/src/wrapped32/wrappedlibxcursor.c +++ b/src/wrapped32/wrappedlibxcursor.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxdamage.c b/src/wrapped32/wrappedlibxdamage.c index 0b1520c60e..98ce3fb8ee 100644 --- a/src/wrapped32/wrappedlibxdamage.c +++ b/src/wrapped32/wrappedlibxdamage.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxext.c b/src/wrapped32/wrappedlibxext.c index e26b0cc08d..a9c7d2a99a 100644 --- a/src/wrapped32/wrappedlibxext.c +++ b/src/wrapped32/wrappedlibxext.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxfixes.c b/src/wrapped32/wrappedlibxfixes.c index 510482a9aa..dfbb3a928d 100644 --- a/src/wrapped32/wrappedlibxfixes.c +++ b/src/wrapped32/wrappedlibxfixes.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxi.c b/src/wrapped32/wrappedlibxi.c index 211f1fbeb8..9dd4074bb3 100644 --- a/src/wrapped32/wrappedlibxi.c +++ b/src/wrapped32/wrappedlibxi.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxrandr.c b/src/wrapped32/wrappedlibxrandr.c index 6ef7c7776a..ea6f2a631f 100644 --- a/src/wrapped32/wrappedlibxrandr.c +++ b/src/wrapped32/wrappedlibxrandr.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxrender.c b/src/wrapped32/wrappedlibxrender.c index 63702b6474..c21fc5a9ce 100644 --- a/src/wrapped32/wrappedlibxrender.c +++ b/src/wrapped32/wrappedlibxrender.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxss.c b/src/wrapped32/wrappedlibxss.c index 5598da6592..db173c341b 100644 --- a/src/wrapped32/wrappedlibxss.c +++ b/src/wrapped32/wrappedlibxss.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedlibxxf86vm.c b/src/wrapped32/wrappedlibxxf86vm.c index d3d1ea4989..dd1d60c085 100644 --- a/src/wrapped32/wrappedlibxxf86vm.c +++ b/src/wrapped32/wrappedlibxxf86vm.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedmount.c b/src/wrapped32/wrappedmount.c index 7b70b1dd33..a530afa9a4 100644 --- a/src/wrapped32/wrappedmount.c +++ b/src/wrapped32/wrappedmount.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappednsl.c b/src/wrapped32/wrappednsl.c index d410a31ccc..fbe931cfb7 100644 --- a/src/wrapped32/wrappednsl.c +++ b/src/wrapped32/wrappednsl.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappednvml.c b/src/wrapped32/wrappednvml.c index e45ac7b88b..b52cc178c5 100644 --- a/src/wrapped32/wrappednvml.c +++ b/src/wrapped32/wrappednvml.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedopenal.c b/src/wrapped32/wrappedopenal.c index c3ae726e8a..5cacb9655d 100644 --- a/src/wrapped32/wrappedopenal.c +++ b/src/wrapped32/wrappedopenal.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedpulsesimple.c b/src/wrapped32/wrappedpulsesimple.c index bea4f1b7a0..88015c1b2a 100644 --- a/src/wrapped32/wrappedpulsesimple.c +++ b/src/wrapped32/wrappedpulsesimple.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedsdl1.c b/src/wrapped32/wrappedsdl1.c index 92f6fad545..399a593fe5 100644 --- a/src/wrapped32/wrappedsdl1.c +++ b/src/wrapped32/wrappedsdl1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedsdl2.c b/src/wrapped32/wrappedsdl2.c index 842934f6c1..55369dd6c6 100644 --- a/src/wrapped32/wrappedsdl2.c +++ b/src/wrapped32/wrappedsdl2.c @@ -3,7 +3,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedsdl2image.c b/src/wrapped32/wrappedsdl2image.c index 3f07cf1bfb..a9e20e064e 100644 --- a/src/wrapped32/wrappedsdl2image.c +++ b/src/wrapped32/wrappedsdl2image.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedselinux.c b/src/wrapped32/wrappedselinux.c index b7a8d0babe..f6ce6b5a91 100644 --- a/src/wrapped32/wrappedselinux.c +++ b/src/wrapped32/wrappedselinux.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedtcmallocminimal.c b/src/wrapped32/wrappedtcmallocminimal.c index 154cdfcab7..627603d340 100644 --- a/src/wrapped32/wrappedtcmallocminimal.c +++ b/src/wrapped32/wrappedtcmallocminimal.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/src/wrapped32/wrappedudev0.c b/src/wrapped32/wrappedudev0.c index 365756218f..39caea5601 100644 --- a/src/wrapped32/wrappedudev0.c +++ b/src/wrapped32/wrappedudev0.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped32/wrappedudev1.c b/src/wrapped32/wrappedudev1.c index bd0d602a8e..0ccc7f0975 100644 --- a/src/wrapped32/wrappedudev1.c +++ b/src/wrapped32/wrappedudev1.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include diff --git a/src/wrapped32/wrappedxinerama.c b/src/wrapped32/wrappedxinerama.c index 534f55c23f..61d340fd87 100644 --- a/src/wrapped32/wrappedxinerama.c +++ b/src/wrapped32/wrappedxinerama.c @@ -2,7 +2,6 @@ #include #include #include -#define _GNU_SOURCE /* See feature_test_macros(7) */ #include #include "wrappedlibs.h" diff --git a/wrapperhelper/example-libc.h b/wrapperhelper/example-libc.h index 4ead3e38aa..d65d4acc43 100644 --- a/wrapperhelper/example-libc.h +++ b/wrapperhelper/example-libc.h @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _GNU_SOURCE 1 #define __USE_MISC 1 #define PORTMAP From 948da8f33bc07bfb16e32e4183b26259c162c1e5 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 18:08:57 +0200 Subject: [PATCH 02/16] global lfs Signed-off-by: Pepper Gray --- CMakeLists.txt | 1 + src/libtools/obstack.c | 2 -- src/tools/fileutils.c | 1 - src/wrapped/wrappedlibc.c | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 600befac7c..28e773cf42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -385,6 +385,7 @@ set(BOX64_ROOT ${CMAKE_SOURCE_DIR}) add_definitions(-std=gnu11 -funwind-tables -fvisibility=hidden) add_definitions(-D_GNU_SOURCE=1) +add_definitions(-D_FILE_OFFSET_BITS=64) if(USE_CCACHE) find_program(CCACHE_FOUND ccache) diff --git a/src/libtools/obstack.c b/src/libtools/obstack.c index 7bd577f72d..4b40fee618 100644 --- a/src/libtools/obstack.c +++ b/src/libtools/obstack.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: MIT -#define _LARGEFILE_SOURCE 1 -#define _FILE_OFFSET_BITS 64 #include #include #include diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 6e4487758b..9093e6978d 100644 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -1,5 +1,4 @@ // SPDX-License-Identifier: MIT -#define _FILE_OFFSET_BITS 64 #include #include #include diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 574d47237f..fe10194947 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1,6 +1,4 @@ // SPDX-License-Identifier: MIT -#define _LARGEFILE_SOURCE 1 -#define _FILE_OFFSET_BITS 64 #if !defined(TERMUX) && !defined(ANDROID) # if defined(__has_include) # if __has_include() From 4e2c3c03f66257b8d8637c3ff97c5d19b2452562 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 17:33:38 +0200 Subject: [PATCH 03/16] lfs: use fseeko Signed-off-by: Pepper Gray --- src/elfs/elfloader.c | 4 ++-- src/elfs/elfloader32.c | 4 ++-- src/elfs/elfparser.c | 12 ++++++------ src/elfs/elfparser32.c | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 34ee518641..2c46d4b3ed 100644 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -432,7 +432,7 @@ int AllocLoadElfMemory(box64context_t* context, elfheader_t* head, int mainbin) setProtection_elf((uintptr_t)p, asize, prot); head->multiblocks[n].p = p; if (file_read_size) { - fseeko64(head->file, head->multiblocks[n].offs, SEEK_SET); + fseeko(head->file, head->multiblocks[n].offs, SEEK_SET); if(fread((void*)head->multiblocks[n].paddr, file_read_size, 1, head->file)!=1) { printf_log(LOG_NONE, "Cannot read elf block (@%p 0x%zx/0x%zx) for elf \"%s\"\n", (void*)head->multiblocks[n].offs, head->multiblocks[n].asize, (box64_pagesize - 1), head->name); return 1; @@ -457,7 +457,7 @@ int AllocLoadElfMemory(box64context_t* context, elfheader_t* head, int mainbin) char* dest = (char*)(context->tlsdata+context->tlssize+head->tlsbase); printf_log(LOG_DEBUG, "Loading TLS block #%zu @%p (0x%zx/0x%zx)\n", i, dest, e->p_filesz, e->p_memsz); if(e->p_filesz) { - fseeko64(head->file, e->p_offset, SEEK_SET); + fseeko(head->file, e->p_offset, SEEK_SET); if(fread(dest, e->p_filesz, 1, head->file)!=1) { mutex_unlock(&context->mutex_tls); printf_log(LOG_NONE, "Fail to read PT_TLS part #%zu (size=%zd)\n", i, e->p_filesz); diff --git a/src/elfs/elfloader32.c b/src/elfs/elfloader32.c index f0552dd35c..0ab55d8c75 100644 --- a/src/elfs/elfloader32.c +++ b/src/elfs/elfloader32.c @@ -325,7 +325,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin setProtection_elf((uintptr_t)p, asize, prot); head->multiblocks[n].p = p; if (file_read_size) { - fseeko64(head->file, head->multiblocks[n].offs, SEEK_SET); + fseeko(head->file, head->multiblocks[n].offs, SEEK_SET); if(fread((void*)head->multiblocks[n].paddr, file_read_size, 1, head->file)!=1) { printf_log(LOG_NONE, "Cannot read elf block (@%p 0x%zx/0x%zx) for elf \"%s\"\n", (void*)head->multiblocks[n].offs, head->multiblocks[n].asize, (box64_pagesize - 1), head->name); return 1; @@ -350,7 +350,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin char* dest = (char*)(context->tlsdata+context->tlssize+head->tlsbase); printf_log(LOG_DEBUG, "Loading TLS block #%zu @%p (0x%zx/0x%zx)\n", i, dest, e->p_filesz, e->p_memsz); if(e->p_filesz) { - fseeko64(head->file, e->p_offset, SEEK_SET); + fseeko(head->file, e->p_offset, SEEK_SET); if(fread(dest, e->p_filesz, 1, head->file)!=1) { mutex_unlock(&context->mutex_tls); printf_log(LOG_NONE, "Fail to read PT_TLS part #%zu (size=%zd)\n", i, e->p_filesz); diff --git a/src/elfs/elfparser.c b/src/elfs/elfparser.c index 7d7df595eb..1166722834 100644 --- a/src/elfs/elfparser.c +++ b/src/elfs/elfparser.c @@ -27,7 +27,7 @@ static int LoadSH(FILE *f, Elf64_Shdr *s, void** SH, const char* name, uint32_t printf_log(LOG_INFO, "Section Header \"%s\" (off=%ld, size=%ld) has size (not multiple of %ld)\n", name, s->sh_offset, s->sh_size, sizeof(Elf64_Sym)); } *SH = box_calloc(1, s->sh_size); - fseeko64(f, s->sh_offset ,SEEK_SET); + fseeko(f, s->sh_offset ,SEEK_SET); if(fread(*SH, s->sh_size, 1, f)!=1) { printf_log(LOG_INFO, "Cannot read Section Header \"%s\" (off=%ld, size=%ld)\n", name, s->sh_offset, s->sh_size); return -1; @@ -70,7 +70,7 @@ static void LoadProgramSection(FILE *f, elfheader_t* h, int size, uint32_t type, for (size_t i=0; inumPHEntries && !*what; ++i) { if(h->PHEntries._64[i].p_type == type) { *what = box_calloc(1, h->PHEntries._64[i].p_memsz); - fseeko64(f, h->PHEntries._64[i].p_offset ,SEEK_SET); + fseeko(f, h->PHEntries._64[i].p_offset ,SEEK_SET); if(fread(h->Dynamic._64, h->PHEntries._64[i].p_filesz, 1, f)!=1) { printf_log(LOG_INFO, "Cannot read Program Header %zd \"%s\" (off=%ld, size=%ld)\n", i, "PT_DYNAMIC", h->PHEntries._64[i].p_offset, h->PHEntries._64[i].p_filesz); box_free(*what); @@ -103,7 +103,7 @@ static void* LoadSubLoadSection(FILE *f, elfheader_t* h, uintptr_t offset, size_ size = end - start; } ret = box_calloc(1, size); - fseeko64(f, h->PHEntries._64[i].p_offset + offset - h->PHEntries._64[i].p_vaddr, SEEK_SET); + fseeko(f, h->PHEntries._64[i].p_offset + offset - h->PHEntries._64[i].p_vaddr, SEEK_SET); size_t to_read = size; if (size + offset - h->PHEntries._64[i].p_vaddr > h->PHEntries._64[i].p_filesz) to_read -= (size + offset - h->PHEntries._64[i].p_vaddr) - h->PHEntries._64[i].p_filesz; @@ -196,7 +196,7 @@ elfheader_t* ParseElfHeader64(FILE* f, const char* name, int exec) if(header.e_shentsize && !h->numSHEntries && header.e_shoff) { printf_dump(LOG_DEBUG, "Read number of Sections in 1st Section\n"); // read 1st section header and grab actual number from here - fseeko64(f, header.e_shoff, SEEK_SET); + fseeko(f, header.e_shoff, SEEK_SET); Elf64_Shdr section; if(fread(§ion, sizeof(Elf64_Shdr), 1, f)!=1) { box_free(h); @@ -209,7 +209,7 @@ elfheader_t* ParseElfHeader64(FILE* f, const char* name, int exec) // now read all section headers printf_dump(LOG_DEBUG, "Read %zu Section header\n", h->numSHEntries); h->SHEntries._64 = (Elf64_Shdr*)box_calloc(h->numSHEntries, sizeof(Elf64_Shdr)); - fseeko64(f, header.e_shoff ,SEEK_SET); + fseeko(f, header.e_shoff ,SEEK_SET); if(fread(h->SHEntries._64, sizeof(Elf64_Shdr), h->numSHEntries, f)!=h->numSHEntries) { FreeElfHeader(&h); printf_log(LOG_INFO, "Cannot read all Section Header\n"); @@ -225,7 +225,7 @@ elfheader_t* ParseElfHeader64(FILE* f, const char* name, int exec) printf_dump(LOG_DEBUG, "Read %zu Program header\n", h->numPHEntries); h->PHEntries._64 = (Elf64_Phdr*)box_calloc(h->numPHEntries, sizeof(Elf64_Phdr)); - fseeko64(f, header.e_phoff ,SEEK_SET); + fseeko(f, header.e_phoff ,SEEK_SET); if(fread(h->PHEntries._64, sizeof(Elf64_Phdr), h->numPHEntries, f)!=h->numPHEntries) { FreeElfHeader(&h); printf_log(LOG_INFO, "Cannot read all Program Header\n"); diff --git a/src/elfs/elfparser32.c b/src/elfs/elfparser32.c index aada177f4e..b11d42acb5 100755 --- a/src/elfs/elfparser32.c +++ b/src/elfs/elfparser32.c @@ -25,7 +25,7 @@ static int LoadSH(FILE *f, Elf32_Shdr *s, void** SH, const char* name, uint32_t printf_log(LOG_INFO, "Section Header \"%s\" (off=%d, size=%d) has size (not multiple of %ld)\n", name, s->sh_offset, s->sh_size, sizeof(Elf32_Sym)); } *SH = actual_calloc(1, s->sh_size); - fseeko64(f, s->sh_offset ,SEEK_SET); + fseeko(f, s->sh_offset ,SEEK_SET); if(fread(*SH, s->sh_size, 1, f)!=1) { printf_log(LOG_INFO, "Cannot read Section Header \"%s\" (off=%d, size=%d)\n", name, s->sh_offset, s->sh_size); return -1; @@ -127,7 +127,7 @@ elfheader_t* ParseElfHeader32(FILE* f, const char* name, int exec) if(h->numSHEntries == 0) { printf_log(LOG_DEBUG, "Read number of Sections in 1st Section\n"); // read 1st section header and grab actual number from here - fseeko64(f, header.e_shoff, SEEK_SET); + fseeko(f, header.e_shoff, SEEK_SET); Elf32_Shdr section; if(fread(§ion, sizeof(Elf32_Shdr), 1, f)!=1) { actual_free(h); @@ -139,7 +139,7 @@ elfheader_t* ParseElfHeader32(FILE* f, const char* name, int exec) // now read all section headers printf_log(LOG_DEBUG, "Read %d Section header\n", h->numSHEntries); h->SHEntries._32 = (Elf32_Shdr*)actual_calloc(h->numSHEntries, sizeof(Elf32_Shdr)); - fseeko64(f, header.e_shoff ,SEEK_SET); + fseeko(f, header.e_shoff ,SEEK_SET); if(fread(h->SHEntries._32, sizeof(Elf32_Shdr), h->numSHEntries, f)!=h->numSHEntries) { FreeElfHeader(&h); printf_log(LOG_INFO, "Cannot read all Section Header\n"); @@ -155,7 +155,7 @@ elfheader_t* ParseElfHeader32(FILE* f, const char* name, int exec) printf_log(LOG_DEBUG, "Read %d Program header\n", h->numPHEntries); h->PHEntries._32 = (Elf32_Phdr*)actual_calloc(h->numPHEntries, sizeof(Elf32_Phdr)); - fseeko64(f, header.e_phoff ,SEEK_SET); + fseeko(f, header.e_phoff ,SEEK_SET); if(fread(h->PHEntries._32, sizeof(Elf32_Phdr), h->numPHEntries, f)!=h->numPHEntries) { FreeElfHeader(&h); printf_log(LOG_INFO, "Cannot read all Program Header\n"); From 93334e930dd836324a349bd71348c4cc8a8754d1 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 18:16:55 +0200 Subject: [PATCH 04/16] lfs: use ino_t, off_t Signed-off-by: Pepper Gray --- src/emu/x64syscall.c | 4 ++-- src/wrapped/wrappedlibc.c | 2 +- src/wrapped32/wrappedlibc.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emu/x64syscall.c b/src/emu/x64syscall.c index b182047324..5c0f54a7b5 100644 --- a/src/emu/x64syscall.c +++ b/src/emu/x64syscall.c @@ -430,8 +430,8 @@ typedef struct x86_linux_dirent_s { } x86_linux_dirent_t; typedef struct nat_linux_dirent64_s { - ino64_t d_ino; - off64_t d_off; + ino_t d_ino; + off_t d_off; unsigned short d_reclen; unsigned char d_type; char d_name[]; diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index fe10194947..92bef98f30 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -4259,7 +4259,7 @@ static ssize_t my_cookie_write(void *p, const char *buf, size_t size) my_cookie_t* cookie = (my_cookie_t*)p; return (ssize_t)RunFunctionFmt(cookie->w, "ppL", cookie->cookie, buf, size) ; } -static int my_cookie_seek(void *p, off64_t *offset, int whence) +static int my_cookie_seek(void *p, off_t *offset, int whence) { my_cookie_t* cookie = (my_cookie_t*)p; return RunFunctionFmt(cookie->s, "ppi", cookie->cookie, offset, whence) ; diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index adf429aeeb..7f426e9260 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -3201,7 +3201,7 @@ static ssize_t my32_cookie_write(void *p, const char *buf, size_t size) my32_cookie_t* cookie = (my32_cookie_t*)p; return (ssize_t)RunFunction(my_context, cookie->w, 3, cookie->cookie, buf, size); } -static int my32_cookie_seek(void *p, off64_t *offset, int whence) +static int my32_cookie_seek(void *p, off_t *offset, int whence) { my32_cookie_t* cookie = (my32_cookie_t*)p; return RunFunction(my_context, cookie->s, 3, cookie->cookie, offset, whence); From 14183a47c19d53c5d27103758cd606545ec78bf8 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 19:01:49 +0200 Subject: [PATCH 05/16] lfs: mmap Signed-off-by: Pepper Gray --- src/elfs/elfloader32.c | 14 +++++++------- src/libtools/threads.c | 2 +- src/libtools/threads32.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/elfs/elfloader32.c b/src/elfs/elfloader32.c index 0ab55d8c75..f5798e23e8 100644 --- a/src/elfs/elfloader32.c +++ b/src/elfs/elfloader32.c @@ -155,14 +155,14 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin void* image = NULL; if(!head->vaddr) { sz += head->align; - raw = mmap64(from_ptrv(offs), sz, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); + raw = mmap(from_ptrv(offs), sz, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); image = (void*)(((uintptr_t)raw+max_align)&~max_align); } else { if(from_ptr(head->vaddr)&(box64_pagesize-1)) { // load address is not page-aligned, round down and increase size uintptr_t aligned_addr = ALIGN_DOWN(from_ptr(head->vaddr)); size_t extra = from_ptr(head->vaddr) - aligned_addr; - raw = mmap64((void*)aligned_addr, sz + extra, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); + raw = mmap((void*)aligned_addr, sz + extra, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); if(raw != MAP_FAILED && (uintptr_t)raw == aligned_addr) { image = from_ptrv(head->vaddr); sz += extra; @@ -170,7 +170,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin image = raw; } } else { - image = raw = mmap64(from_ptrv(head->vaddr), sz, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); + image = raw = mmap(from_ptrv(head->vaddr), sz, 0, MAP_ANONYMOUS|MAP_PRIVATE|MAP_NORESERVE, -1, 0); } } if(image!=MAP_FAILED && !head->vaddr && image!=from_ptrv(offs)) { @@ -230,7 +230,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin try_mmap = 0; if(try_mmap) { printf_dump(log_level, "Mmaping 0x%lx(0x%lx) bytes @%p for Elf \"%s\"\n", head->multiblocks[n].size, head->multiblocks[n].asize, (void*)head->multiblocks[n].paddr, head->name); - void* p = mmap64( + void* p = mmap( (void*)head->multiblocks[n].paddr, head->multiblocks[n].size, prot, @@ -268,7 +268,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin file_map_addr += box64_pagesize; if(file_map_addr < head->multiblocks[n].paddr + e->p_filesz) { size_t file_map_delta = file_map_addr - paddr; - void* file_map = mmap64((void*)file_map_addr, file_size - file_map_delta, prot | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, head->fileno, file_offset + file_map_delta); + void* file_map = mmap((void*)file_map_addr, file_size - file_map_delta, prot | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, head->fileno, file_offset + file_map_delta); mapped_file = file_map == (void*)file_map_addr; if(mapped_file) { p = (void*)paddr; @@ -282,7 +282,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin } if (!mapped_file && !file_delta) { printf_dump(log_level, "Allocating 0x%zx (0x%zx) bytes @%p, will read 0x%zx @%p for Elf \"%s\"\n", asize, e->p_memsz, (void*)paddr, e->p_filesz, (void*)head->multiblocks[n].paddr, head->name); - p = mmap64((void*)paddr, asize, prot | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); + p = mmap((void*)paddr, asize, prot | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); } else if (!mapped_file) { // difference in pagesize, so need to mmap only what needed to be... //check startint point @@ -298,7 +298,7 @@ int AllocLoadElfMemory32(box64context_t* context, elfheader_t* head, int mainbin } if(new_size>0) { printf_dump(log_level, "Allocating 0x%zx (0x%zx/0x%zx) bytes @%p, will read 0x%zx @%p for Elf \"%s\"\n", ALIGN(new_size), paddr, e->p_memsz, (void*)new_addr, e->p_filesz, (void*)head->multiblocks[n].paddr, head->name); - p = mmap64( + p = mmap( (void*)new_addr, ALIGN(new_size), prot|PROT_WRITE, diff --git a/src/libtools/threads.c b/src/libtools/threads.c index 524e36bd4f..8b44a8478e 100644 --- a/src/libtools/threads.c +++ b/src/libtools/threads.c @@ -277,7 +277,7 @@ x64emu_t* thread_get_emu(void) int stacksize = 256*1024; void* stack = NULL; if(box64_is32bits) - stack = mmap64(NULL, stacksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0); + stack = mmap(NULL, stacksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0); else stack = InternalMmap(NULL, stacksize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_GROWSDOWN, -1, 0); if(stack!=MAP_FAILED && !box64_quit) // to avoid marking memory when box64 is quitting diff --git a/src/libtools/threads32.c b/src/libtools/threads32.c index 180036af46..924fed3d52 100755 --- a/src/libtools/threads32.c +++ b/src/libtools/threads32.c @@ -272,7 +272,7 @@ void* my32_prepare_thread(x64emu_t *emu, void* f, void* arg, int ssize, void** p { int stacksize = (ssize)?ssize:(2*1024*1024); //default stack size is 2Mo //void* stack = malloc(stacksize); - void* stack = mmap64(NULL, stacksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0); + void* stack = mmap(NULL, stacksize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0); if(stack==MAP_FAILED) return NULL; emuthread_t *et = (emuthread_t*)box_calloc(1, sizeof(emuthread_t)); From a92baa7fa18a9d21d937e1b5474dfbf2caeff9f8 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 19:46:20 +0200 Subject: [PATCH 06/16] lfs: fsblkcnt_t, fsfilcnt_t Signed-off-by: Pepper Gray --- src/libtools/myalign64_32.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libtools/myalign64_32.c b/src/libtools/myalign64_32.c index d2eac77fd3..871022f8e4 100755 --- a/src/libtools/myalign64_32.c +++ b/src/libtools/myalign64_32.c @@ -129,12 +129,12 @@ struct native_statvfs { unsigned long int f_bsize; unsigned long int f_frsize; #ifndef ANDROID - __fsblkcnt64_t f_blocks; - __fsblkcnt64_t f_bfree; - __fsblkcnt64_t f_bavail; - __fsfilcnt64_t f_files; - __fsfilcnt64_t f_ffree; - __fsfilcnt64_t f_favail; + fsblkcnt_t f_blocks; + fsblkcnt_t f_bfree; + fsblkcnt_t f_bavail; + fsfilcnt_t f_files; + fsfilcnt_t f_ffree; + fsfilcnt_t f_favail; #else fsblkcnt_t f_blocks; fsblkcnt_t f_bfree; From efbdf2e6f8a21930a59349ce5e33c3b7d98d275d Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 20:49:39 +0200 Subject: [PATCH 07/16] lfs: stat Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 10 +++---- src/wrapped32/wrappedlibc.c | 52 ++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 92bef98f30..d17ff5bab5 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1702,7 +1702,7 @@ EXPORT void my__ITM_deregisterTMCloneTable(x64emu_t* emu, void* p) { (void)emu; EXPORT int my___fxstat(x64emu_t *emu, int vers, int fd, void* buf) { (void)emu; (void)vers; - struct stat64 st; + struct stat st; int r = fstat64(fd, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); @@ -1744,7 +1744,7 @@ EXPORT int my___xmknodat(x64emu_t* emu, int v, int dirfd, char* path, uint32_t m EXPORT int my___xstat(x64emu_t* emu, int v, void* path, void* buf) { (void)emu; (void)v; - struct stat64 st; + struct stat st; int r = stat64((const char*)path, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); @@ -1755,7 +1755,7 @@ EXPORT int my___xstat64(x64emu_t* emu, int v, void* path, void* buf) __attribute EXPORT int my___lxstat(x64emu_t* emu, int v, void* name, void* buf) { (void)emu; (void)v; - struct stat64 st; + struct stat st; int r = lstat64((const char*)name, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); @@ -1766,7 +1766,7 @@ EXPORT int my___lxstat64(x64emu_t* emu, int v, void* name, void* buf) __attribut EXPORT int my___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, int flags) { (void)emu; (void)v; - struct stat64 st; + struct stat st; int r = fstatat64(d, path, &st, flags); if(!r) UnalignStat64(&st, buf); @@ -1820,7 +1820,7 @@ EXPORT int my_fstatat64(x64emu_t *emu, int fd, const char* path, void* buf, int EXPORT int my__IO_file_stat(x64emu_t* emu, void* f, void* buf) { - struct stat64 st; + struct stat st; int r = my->_IO_file_stat(f, &st); UnalignStat64(&st, buf); return r; diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index 7f426e9260..465d9f000f 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -206,7 +206,7 @@ struct i386_stat { uint32_t __unused5; } __attribute__((packed)); -static int FillStatFromStat64(int vers, const struct stat64 *st64, void *st32) +static int FillStatFromStat64(int vers, const struct stat *st64, void *st32) { struct i386_stat *i386st = (struct i386_stat *)st32; @@ -597,8 +597,8 @@ EXPORT int my32_fstatvfs(x64emu_t* emu, int fd, void* r) EXPORT int my32_fstatat(x64emu_t* emu, int fd, void* name, void* buff, int flags) { - struct stat64 s = {0}; - struct stat64* p = buff?&s:NULL; + struct stat s = {0}; + struct stat* p = buff?&s:NULL; int ret = fstatat64(fd, name, p, flags); if(buff) FillStatFromStat64(3, &s, buff); @@ -607,8 +607,8 @@ EXPORT int my32_fstatat(x64emu_t* emu, int fd, void* name, void* buff, int flags EXPORT int my32_fstatat64(x64emu_t* emu, int fd, void* name, void* buff, int flags) { - struct stat64 s = {0}; - struct stat64* p = buff?&s:NULL; + struct stat s = {0}; + struct stat* p = buff?&s:NULL; int ret = fstatat64(fd, name, p, flags); if(buff) UnalignStat64_32(&s, buff); @@ -617,8 +617,8 @@ EXPORT int my32_fstatat64(x64emu_t* emu, int fd, void* name, void* buff, int fla EXPORT int my32___stat64_time64(x64emu_t* emu, void* f, void* r) { - struct stat64 s = {0}; - struct stat64* p = r?&s:NULL; + struct stat s = {0}; + struct stat* p = r?&s:NULL; int ret = stat64(f, p); if(r) UnalignStat64_32_t64(&s, r); @@ -627,8 +627,8 @@ EXPORT int my32___stat64_time64(x64emu_t* emu, void* f, void* r) EXPORT int my32___lstat64_time64(x64emu_t* emu, void* f, void* r) { - struct stat64 s = {0}; - struct stat64* p = r?&s:NULL; + struct stat s = {0}; + struct stat* p = r?&s:NULL; int ret = lstat64(f, p); if(r) UnalignStat64_32_t64(&s, r); @@ -637,8 +637,8 @@ EXPORT int my32___lstat64_time64(x64emu_t* emu, void* f, void* r) EXPORT int my32___fstat64_time64(x64emu_t* emu, int fd, void* r) { - struct stat64 s = {0}; - struct stat64* p = r?&s:NULL; + struct stat s = {0}; + struct stat* p = r?&s:NULL; int ret = fstat64(fd, p); if(r) UnalignStat64_32_t64(&s, r); @@ -1229,7 +1229,7 @@ EXPORT void my32__ITM_deregisterTMCloneTable(x64emu_t* emu, void* p) {} EXPORT int my32_stat(char* path, void* buf) { - struct stat64 st; + struct stat st; int r = stat64(path, &st); FillStatFromStat64(3, &st, buf); return r; @@ -1237,7 +1237,7 @@ EXPORT int my32_stat(char* path, void* buf) EXPORT int my32_fstat(int fd, void* buf) { - struct stat64 st; + struct stat st; int r = fstat64(fd, &st); FillStatFromStat64(3, &st, buf); return r; @@ -1245,7 +1245,7 @@ EXPORT int my32_fstat(int fd, void* buf) EXPORT int my32_lstat(char* path, void* buf) { - struct stat64 st; + struct stat st; int r = lstat64(path, &st); FillStatFromStat64(3, &st, buf); return r; @@ -1253,7 +1253,7 @@ EXPORT int my32_lstat(char* path, void* buf) EXPORT int my32___fxstat(x64emu_t *emu, int vers, int fd, void* buf) { - struct stat64 st; + struct stat st; int r = fstat64(fd, &st); if (r) return r; r = FillStatFromStat64(vers, &st, buf); @@ -1262,7 +1262,7 @@ EXPORT int my32___fxstat(x64emu_t *emu, int vers, int fd, void* buf) EXPORT int my32___fxstat64(x64emu_t *emu, int vers, int fd, void* buf) { - struct stat64 st; + struct stat st; int r = fstat64(fd, &st); //int r = syscall(__NR_stat64, fd, &st); UnalignStat64_32(&st, buf); @@ -1292,21 +1292,21 @@ EXPORT int my32_statx(x64emu_t* emu, int dirfd, void* path, int flags, uint32_t EXPORT int my32_stat64(void* path, void* buf) { - struct stat64 st; + struct stat st; int r = stat64(path, &st); UnalignStat64_32(&st, buf); return r; } EXPORT int my32_lstat64(void* path, void* buf) { - struct stat64 st; + struct stat st; int r = lstat64(path, &st); UnalignStat64_32(&st, buf); return r; } EXPORT int my32_fstat64(int fd, void* buf) { - struct stat64 st; + struct stat st; int r = fstat64(fd, &st); UnalignStat64_32(&st, buf); return r; @@ -1314,7 +1314,7 @@ EXPORT int my32_fstat64(int fd, void* buf) EXPORT int my32___xstat(x64emu_t* emu, int v, void* path, void* buf) { - struct stat64 st; + struct stat st; int r = stat64((const char*)path, &st); if (r) return r; r = FillStatFromStat64(v, &st, buf); @@ -1323,7 +1323,7 @@ EXPORT int my32___xstat(x64emu_t* emu, int v, void* path, void* buf) EXPORT int my32___xstat64(x64emu_t* emu, int v, void* path, void* buf) { - struct stat64 st; + struct stat st; int r = stat64((const char*)path, &st); UnalignStat64_32(&st, buf); return r; @@ -1331,7 +1331,7 @@ EXPORT int my32___xstat64(x64emu_t* emu, int v, void* path, void* buf) EXPORT int my32___lxstat(x64emu_t* emu, int v, void* name, void* buf) { - struct stat64 st; + struct stat st; int r = lstat64((const char*)name, &st); if (r) return r; r = FillStatFromStat64(v, &st, buf); @@ -1340,7 +1340,7 @@ EXPORT int my32___lxstat(x64emu_t* emu, int v, void* name, void* buf) EXPORT int my32___lxstat64(x64emu_t* emu, int v, void* name, void* buf) { - struct stat64 st; + struct stat st; int r = lstat64((const char*)name, &st); UnalignStat64_32(&st, buf); return r; @@ -1348,7 +1348,7 @@ EXPORT int my32___lxstat64(x64emu_t* emu, int v, void* name, void* buf) #if 0 EXPORT int my32___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, int flags) { - struct stat64 st; + struct stat st; int r = fstatat64(d, path, &st, flags); if (r) return r; r = FillStatFromStat64(v, &st, buf); @@ -1357,7 +1357,7 @@ EXPORT int my32___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, i #endif EXPORT int my32___fxstatat64(x64emu_t* emu, int v, int d, void* path, void* buf, int flags) { - struct stat64 st; + struct stat st; int r = fstatat64(d, path, &st, flags); UnalignStat64_32(&st, buf); return r; @@ -1365,7 +1365,7 @@ EXPORT int my32___fxstatat64(x64emu_t* emu, int v, int d, void* path, void* buf, #if 0 EXPORT int my32__IO_file_stat(x64emu_t* emu, void* f, void* buf) { - struct stat64 st; + struct stat st; libc_my32_t *my = (libc_my32_t *)emu->context->libclib->priv.w.p2; int r = my->_IO_file_stat(f, &st); UnalignStat64(&st, buf); From 71280a284b5aa6bfd4512231f66cd5f1026e625c Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 20:51:37 +0200 Subject: [PATCH 08/16] lfs: dirent Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 10 +++++----- src/wrapped32/wrappedlibc.c | 32 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index d17ff5bab5..58da91e4c7 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -441,7 +441,7 @@ static void* findcompare_dirFct(void* fct) // filter64 #define GO(A) \ static uintptr_t my_filter64_fct_##A = 0; \ -static int my_filter64_##A(const struct dirent64* a) \ +static int my_filter64_##A(const struct dirent* a) \ { \ return (int)RunFunctionFmt(my_filter64_fct_##A, "p", a); \ } @@ -464,7 +464,7 @@ static void* findfilter64Fct(void* fct) // compare64 #define GO(A) \ static uintptr_t my_compare64_fct_##A = 0; \ -static int my_compare64_##A(const struct dirent64* a, const struct dirent64* b) \ +static int my_compare64_##A(const struct dirent* a, const struct dirent* b) \ { \ return (int)RunFunctionFmt(my_compare64_fct_##A, "pp", a, b); \ } @@ -2029,7 +2029,7 @@ EXPORT void* my_readdir(x64emu_t* emu, void* dirp) { if (BOX64ENV(fix_64bit_inodes)) { - struct dirent64 *dp64 = readdir64((DIR *)dirp); + struct dirent *dp64 = readdir64((DIR *)dirp); if (!dp64) return NULL; uint32_t ino32 = dp64->d_ino ^ (dp64->d_ino >> 32); int32_t off32 = dp64->d_off; @@ -2054,7 +2054,7 @@ EXPORT void* my_readdir(x64emu_t* emu, void* dirp) EXPORT int32_t my_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** result) { - struct dirent64 d64, *dp64; + struct dirent d64, *dp64; if (BOX64ENV(fix_64bit_inodes) && (sizeof(d64.d_name) > 1)) { static iFppp_t f = NULL; @@ -2076,7 +2076,7 @@ EXPORT int32_t my_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** resul } struct i386_dirent *dp32 = (struct i386_dirent *)entry; - int namelen = dp64->d_reclen - offsetof(struct dirent64, d_name); + int namelen = dp64->d_reclen - offsetof(struct dirent, d_name); if (namelen > sizeof(dp32->d_name)) { *result = NULL; diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index 465d9f000f..336756661c 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -433,7 +433,7 @@ static void* findgloberrFct(void* fct) // filter_dir #define GO(A) \ static uintptr_t my32_filter_dir_fct_##A = 0; \ -static int my32_filter_dir_##A(const struct dirent64* a) \ +static int my32_filter_dir_##A(const struct dirent* a) \ { \ static struct i386_dirent d = {0}; \ UnalignDirent_32(a, &d); \ @@ -485,7 +485,7 @@ static void* findcompare_dirFct(void* fct) // filter64 #define GO(A) \ static uintptr_t my32_filter64_fct_##A = 0; \ -static int my32_filter64_##A(const struct dirent64* a) \ +static int my32_filter64_##A(const struct dirent* a) \ { \ return (int)RunFunctionFmt(my32_filter64_fct_##A, "p", a); \ } @@ -508,7 +508,7 @@ static void* findfilter64Fct(void* fct) // compare64 #define GO(A) \ static uintptr_t my32_compare64_fct_##A = 0; \ -static int my32_compare64_##A(const struct dirent64* a, const struct dirent64* b) \ +static int my32_compare64_##A(const struct dirent* a, const struct dirent* b) \ { \ return (int)RunFunctionFmt(my32_compare64_fct_##A, "pp", a, b); \ } @@ -1496,7 +1496,7 @@ EXPORT void* my32_fts_open(x64emu_t* emu, void* path, int options, void* c) EXPORT void* my32_readdir(x64emu_t* emu, void* dirp) { - struct dirent64 *dp64 = readdir64((DIR *)dirp); + struct dirent *dp64 = readdir64((DIR *)dirp); if (!dp64) return NULL; static struct i386_dirent dp32 = {0}; uint32_t ino32 = dp64->d_ino ^ (dp64->d_ino >> 32); @@ -1512,7 +1512,7 @@ EXPORT void* my32_readdir(x64emu_t* emu, void* dirp) EXPORT int32_t my32_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** result) { - struct dirent64 d64, *dp64; + struct dirent d64, *dp64; if (BOX64ENV(fix_64bit_inodes) && (sizeof(d64.d_name) > 1)) { static iFppp_t f = NULL; @@ -1534,7 +1534,7 @@ EXPORT int32_t my32_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** res } struct i386_dirent *dp32 = (struct i386_dirent *)entry; - int namelen = dp64->d_reclen - offsetof(struct dirent64, d_name); + int namelen = dp64->d_reclen - offsetof(struct dirent, d_name); if (namelen > sizeof(dp32->d_name)) { *result = NULL; @@ -1816,20 +1816,20 @@ EXPORT void my32_globfree64(x64emu_t* emu, void* pglob) #endif EXPORT int my32_scandir(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, void* comp) { - struct dirent64** list = NULL; + struct dirent** list = NULL; int ret = scandir64(dir, &list, findfilter_dirFct(sel), findcompare_dirFct(comp)); *namelist = to_ptrv(list); if (ret>0) { // adjust the array of dirent... inplace adjust of listname and inplace of dirent too for(int i=0; id_ino ^ (dp64->d_ino >> 32); int32_t off32 = dp64->d_off; dp32->d_ino = ino32; dp32->d_off = off32; - dp32->d_reclen = dp64->d_reclen-(offsetof(struct dirent64, d_name)-offsetof(struct i386_dirent, d_name)); + dp32->d_reclen = dp64->d_reclen-(offsetof(struct dirent, d_name)-offsetof(struct i386_dirent, d_name)); dp32->d_type = dp64->d_type; memmove(dp32->d_name, dp64->d_name, dp32->d_reclen-offsetof(struct i386_dirent, d_name)); // inplace shrink pointer to @@ -1840,7 +1840,7 @@ EXPORT int my32_scandir(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, vo } EXPORT int my32_scandir64(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, void* comp) { - struct dirent64** list; + struct dirent** list; int ret = scandir64(dir, &list, findfilter64Fct(sel), findcompare64Fct(comp)); if(ret>=0) *namelist = to_ptrv(list); @@ -2787,12 +2787,12 @@ EXPORT int my32_getopt_long_only(int argc, char* const argv[], const char* optst EXPORT int my32_alphasort64(x64emu_t* emu, ptr_t* d1_, ptr_t* d2_) { - const struct dirent64* d1 = NULL; - const struct dirent64* d2 = NULL; - if(d1_) d1 = (struct dirent64*)from_ptrv(*d1_); - if(d2_) d2 = (struct dirent64*)from_ptrv(*d2_); - const struct dirent64** e1 = d1_?(&d1):NULL; - const struct dirent64** e2 = d2_?(&d2):NULL; + const struct dirent* d1 = NULL; + const struct dirent* d2 = NULL; + if(d1_) d1 = (struct dirent*)from_ptrv(*d1_); + if(d2_) d2 = (struct dirent*)from_ptrv(*d2_); + const struct dirent** e1 = d1_?(&d1):NULL; + const struct dirent** e2 = d2_?(&d2):NULL; return alphasort64(e1, e2); } From ccb07baa2247bb6cecbef0785297ba0f95a5d840 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 20:52:57 +0200 Subject: [PATCH 09/16] lfs: alphasort Signed-off-by: Pepper Gray --- src/wrapped32/wrappedlibc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index 336756661c..dfe208bfa1 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -472,7 +472,7 @@ static void* findcompare_dirFct(void* fct) { if(!fct) return NULL; void* p; - if((p = GetNativeFnc((uintptr_t)fct))) { if(p==my32_alphasort64) return alphasort64; else return p; } + if((p = GetNativeFnc((uintptr_t)fct))) { if(p==my32_alphasort64) return alphasort; else return p; } #define GO(A) if(my32_compare_dir_fct_##A == (uintptr_t)fct) return my32_compare_dir_##A; SUPER() #undef GO @@ -518,7 +518,7 @@ static void* findcompare64Fct(void* fct) { if(!fct) return NULL; void* p; - if((p = GetNativeFnc((uintptr_t)fct))) { if(p==my32_alphasort64) return alphasort64; else return p; } + if((p = GetNativeFnc((uintptr_t)fct))) { if(p==my32_alphasort64) return alphasort; else return p; } #define GO(A) if(my32_compare64_fct_##A == (uintptr_t)fct) return my32_compare64_##A; SUPER() #undef GO @@ -2793,7 +2793,7 @@ EXPORT int my32_alphasort64(x64emu_t* emu, ptr_t* d1_, ptr_t* d2_) if(d2_) d2 = (struct dirent*)from_ptrv(*d2_); const struct dirent** e1 = d1_?(&d1):NULL; const struct dirent** e2 = d2_?(&d2):NULL; - return alphasort64(e1, e2); + return alphasort(e1, e2); } #ifndef ANDROID From 15a561e6027551c469c1bec2ffa0e3545d7f7242 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 20:55:34 +0200 Subject: [PATCH 10/16] lfs: f/open Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 9 ++------- src/wrapped32/wrappedlibc.c | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 58da91e4c7..e428807f63 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2384,16 +2384,11 @@ enum { static int32_t open_func_fallback(char *pathname, int32_t flags, uint32_t open_mode, char *fopen_mode, int type, FILE **file) { - if (type == FOPEN64_TYPE) { - *file = fopen64(pathname, fopen_mode); - return 0; - } else if (type == FOPEN_TYPE) { + if (type == FOPEN_TYPE || type == FOPEN64_TYPE) { *file = fopen(pathname, fopen_mode); return 0; - } else if (type == OPEN_TYPE) { + } else if (type == OPEN_TYPE || type == OPEN64_TYPE) { return open(pathname, flags, open_mode); - } else if (type == OPEN64_TYPE) { - return open64(pathname, flags, open_mode); } return -1; } diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index dfe208bfa1..4dcf83ffc8 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -1694,7 +1694,7 @@ EXPORT int my32_mkstemps64(x64emu_t* emu, char* template, int suffixlen) sprintf(num, "%06d", rand()%999999); memcpy(fname+strlen(fname)-suffixlen-6, num, 6); } while(!FileExist(fname, -1)); - int ret = open64(fname, O_EXCL); + int ret = open(fname, O_EXCL); free(fname); return ret; } From 6bde1eca8ee474f4e63b9e395c172e1b4ff806b0 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 20:57:41 +0200 Subject: [PATCH 11/16] lfs: l/f/stat, fstatat, statfs Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 16 +++++------ src/wrapped32/wrappedlibc.c | 54 ++++++++++++++++++------------------- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index e428807f63..84fb9b001c 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -1703,7 +1703,7 @@ EXPORT int my___fxstat(x64emu_t *emu, int vers, int fd, void* buf) { (void)emu; (void)vers; struct stat st; - int r = fstat64(fd, buf?&st:buf); + int r = fstat(fd, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); return r; @@ -1745,7 +1745,7 @@ EXPORT int my___xstat(x64emu_t* emu, int v, void* path, void* buf) { (void)emu; (void)v; struct stat st; - int r = stat64((const char*)path, buf?&st:buf); + int r = stat((const char*)path, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); return r; @@ -1756,7 +1756,7 @@ EXPORT int my___lxstat(x64emu_t* emu, int v, void* name, void* buf) { (void)emu; (void)v; struct stat st; - int r = lstat64((const char*)name, buf?&st:buf); + int r = lstat((const char*)name, buf?&st:buf); if(buf && !r) UnalignStat64(&st, buf); return r; @@ -1767,7 +1767,7 @@ EXPORT int my___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, int { (void)emu; (void)v; struct stat st; - int r = fstatat64(d, path, &st, flags); + int r = fstatat(d, path, &st, flags); if(!r) UnalignStat64(&st, buf); return r; @@ -1829,16 +1829,16 @@ EXPORT int my__IO_file_stat(x64emu_t* emu, void* f, void* buf) #if 0 EXPORT int my_fstatfs64(int fd, void* buf) { - struct statfs64 st; - int r = fstatfs64(fd, &st); + struct statfs st; + int r = fstatfs(fd, &st); UnalignStatFS64(&st, buf); return r; } EXPORT int my_statfs64(const char* path, void* buf) { - struct statfs64 st; - int r = statfs64(path, &st); + struct statfs st; + int r = statfs(path, &st); UnalignStatFS64(&st, buf); return r; } diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index 4dcf83ffc8..52d7dad74d 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -599,7 +599,7 @@ EXPORT int my32_fstatat(x64emu_t* emu, int fd, void* name, void* buff, int flags { struct stat s = {0}; struct stat* p = buff?&s:NULL; - int ret = fstatat64(fd, name, p, flags); + int ret = fstatat(fd, name, p, flags); if(buff) FillStatFromStat64(3, &s, buff); return ret; @@ -609,7 +609,7 @@ EXPORT int my32_fstatat64(x64emu_t* emu, int fd, void* name, void* buff, int fla { struct stat s = {0}; struct stat* p = buff?&s:NULL; - int ret = fstatat64(fd, name, p, flags); + int ret = fstatat(fd, name, p, flags); if(buff) UnalignStat64_32(&s, buff); return ret; @@ -619,7 +619,7 @@ EXPORT int my32___stat64_time64(x64emu_t* emu, void* f, void* r) { struct stat s = {0}; struct stat* p = r?&s:NULL; - int ret = stat64(f, p); + int ret = stat(f, p); if(r) UnalignStat64_32_t64(&s, r); return ret; @@ -629,7 +629,7 @@ EXPORT int my32___lstat64_time64(x64emu_t* emu, void* f, void* r) { struct stat s = {0}; struct stat* p = r?&s:NULL; - int ret = lstat64(f, p); + int ret = lstat(f, p); if(r) UnalignStat64_32_t64(&s, r); return ret; @@ -639,7 +639,7 @@ EXPORT int my32___fstat64_time64(x64emu_t* emu, int fd, void* r) { struct stat s = {0}; struct stat* p = r?&s:NULL; - int ret = fstat64(fd, p); + int ret = fstat(fd, p); if(r) UnalignStat64_32_t64(&s, r); return ret; @@ -1230,7 +1230,7 @@ EXPORT void my32__ITM_deregisterTMCloneTable(x64emu_t* emu, void* p) {} EXPORT int my32_stat(char* path, void* buf) { struct stat st; - int r = stat64(path, &st); + int r = stat(path, &st); FillStatFromStat64(3, &st, buf); return r; } @@ -1238,7 +1238,7 @@ EXPORT int my32_stat(char* path, void* buf) EXPORT int my32_fstat(int fd, void* buf) { struct stat st; - int r = fstat64(fd, &st); + int r = fstat(fd, &st); FillStatFromStat64(3, &st, buf); return r; } @@ -1246,7 +1246,7 @@ EXPORT int my32_fstat(int fd, void* buf) EXPORT int my32_lstat(char* path, void* buf) { struct stat st; - int r = lstat64(path, &st); + int r = lstat(path, &st); FillStatFromStat64(3, &st, buf); return r; } @@ -1254,7 +1254,7 @@ EXPORT int my32_lstat(char* path, void* buf) EXPORT int my32___fxstat(x64emu_t *emu, int vers, int fd, void* buf) { struct stat st; - int r = fstat64(fd, &st); + int r = fstat(fd, &st); if (r) return r; r = FillStatFromStat64(vers, &st, buf); return r; @@ -1263,7 +1263,7 @@ EXPORT int my32___fxstat(x64emu_t *emu, int vers, int fd, void* buf) EXPORT int my32___fxstat64(x64emu_t *emu, int vers, int fd, void* buf) { struct stat st; - int r = fstat64(fd, &st); + int r = fstat(fd, &st); //int r = syscall(__NR_stat64, fd, &st); UnalignStat64_32(&st, buf); return r; @@ -1293,21 +1293,21 @@ EXPORT int my32_statx(x64emu_t* emu, int dirfd, void* path, int flags, uint32_t EXPORT int my32_stat64(void* path, void* buf) { struct stat st; - int r = stat64(path, &st); + int r = stat(path, &st); UnalignStat64_32(&st, buf); return r; } EXPORT int my32_lstat64(void* path, void* buf) { struct stat st; - int r = lstat64(path, &st); + int r = lstat(path, &st); UnalignStat64_32(&st, buf); return r; } EXPORT int my32_fstat64(int fd, void* buf) { struct stat st; - int r = fstat64(fd, &st); + int r = fstat(fd, &st); UnalignStat64_32(&st, buf); return r; } @@ -1315,7 +1315,7 @@ EXPORT int my32_fstat64(int fd, void* buf) EXPORT int my32___xstat(x64emu_t* emu, int v, void* path, void* buf) { struct stat st; - int r = stat64((const char*)path, &st); + int r = stat((const char*)path, &st); if (r) return r; r = FillStatFromStat64(v, &st, buf); return r; @@ -1324,7 +1324,7 @@ EXPORT int my32___xstat(x64emu_t* emu, int v, void* path, void* buf) EXPORT int my32___xstat64(x64emu_t* emu, int v, void* path, void* buf) { struct stat st; - int r = stat64((const char*)path, &st); + int r = stat((const char*)path, &st); UnalignStat64_32(&st, buf); return r; } @@ -1332,7 +1332,7 @@ EXPORT int my32___xstat64(x64emu_t* emu, int v, void* path, void* buf) EXPORT int my32___lxstat(x64emu_t* emu, int v, void* name, void* buf) { struct stat st; - int r = lstat64((const char*)name, &st); + int r = lstat((const char*)name, &st); if (r) return r; r = FillStatFromStat64(v, &st, buf); return r; @@ -1341,7 +1341,7 @@ EXPORT int my32___lxstat(x64emu_t* emu, int v, void* name, void* buf) EXPORT int my32___lxstat64(x64emu_t* emu, int v, void* name, void* buf) { struct stat st; - int r = lstat64((const char*)name, &st); + int r = lstat((const char*)name, &st); UnalignStat64_32(&st, buf); return r; } @@ -1349,7 +1349,7 @@ EXPORT int my32___lxstat64(x64emu_t* emu, int v, void* name, void* buf) EXPORT int my32___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, int flags) { struct stat st; - int r = fstatat64(d, path, &st, flags); + int r = fstatat(d, path, &st, flags); if (r) return r; r = FillStatFromStat64(v, &st, buf); return r; @@ -1358,7 +1358,7 @@ EXPORT int my32___fxstatat(x64emu_t* emu, int v, int d, void* path, void* buf, i EXPORT int my32___fxstatat64(x64emu_t* emu, int v, int d, void* path, void* buf, int flags) { struct stat st; - int r = fstatat64(d, path, &st, flags); + int r = fstatat(d, path, &st, flags); UnalignStat64_32(&st, buf); return r; } @@ -1374,30 +1374,30 @@ EXPORT int my32__IO_file_stat(x64emu_t* emu, void* f, void* buf) #endif EXPORT int my32_fstatfs(int fd, void* buf) { - struct statfs64 st; - int r = fstatfs64(fd, &st); + struct statfs st; + int r = fstatfs(fd, &st); UnalignStatFS_32(&st, buf); return r; } EXPORT int my32_fstatfs64(int fd, void* buf) { - struct statfs64 st; - int r = fstatfs64(fd, &st); + struct statfs st; + int r = fstatfs(fd, &st); UnalignStatFS64_32(&st, buf); return r; } EXPORT int my32_statfs(const char* path, void* buf) { - struct statfs64 st; - int r = statfs64(path, &st); + struct statfs st; + int r = statfs(path, &st); UnalignStatFS_32(&st, buf); return r; } EXPORT int my32_statfs64(const char* path, void* buf) { - struct statfs64 st; - int r = statfs64(path, &st); + struct statfs st; + int r = statfs(path, &st); UnalignStatFS64_32(&st, buf); return r; } From d20deea3d3cfe22a8e0578ad3887fccbf338136a Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 21:01:58 +0200 Subject: [PATCH 12/16] lfs: get/setrlimit, struct rlimit Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 4 ++-- src/wrapped32/wrappedlibc.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 84fb9b001c..179d2e3344 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -4374,10 +4374,10 @@ EXPORT int my_getrlimit(x64emu_t* emu, uint32_t resource, struct rlimit* rlim) return my___getrlimit(emu, resource, rlim); } -EXPORT int my_getrlimit64(x64emu_t* emu, uint32_t resource, struct rlimit64* rlim) +EXPORT int my_getrlimit64(x64emu_t* emu, uint32_t resource, struct rlimit* rlim) { (void)emu; - return check_getrlimit_buffer(rlim, sizeof(*rlim)) ? getrlimit64(resource, rlim) : -1; + return check_getrlimit_buffer(rlim, sizeof(*rlim)) ? getrlimit(resource, rlim) : -1; } EXPORT int my_setrlimit(x64emu_t* emu, int ressource, const struct rlimit *rlim) diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index 52d7dad74d..cbc2b43376 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -2369,8 +2369,8 @@ EXPORT unsigned long int my32___fdelt_chk (unsigned long int d) EXPORT int my32_getrlimit(x64emu_t* emu, int what, uint32_t* pr) { - struct rlimit64 l = {0}; - int ret = getrlimit64(what, &l); + struct rlimit l = {0}; + int ret = getrlimit(what, &l); if(pr) { pr[0] = (l.rlim_cur<0x100000000LL)?l.rlim_cur:0xffffffff; pr[1] = (l.rlim_max<0x100000000LL)?l.rlim_max:0xffffffff; @@ -2379,10 +2379,10 @@ EXPORT int my32_getrlimit(x64emu_t* emu, int what, uint32_t* pr) } EXPORT int my32_setrlimit(x64emu_t* emu, int what, uint32_t* pr) { - struct rlimit64 l = {0}; + struct rlimit l = {0}; l.rlim_cur = (pr[0]!=0xffffffff)?pr[0]:0xffffffffffffffffLL; l.rlim_max = (pr[1]!=0xffffffff)?pr[1]:0xffffffffffffffffLL; - return setrlimit64(what, &l); + return setrlimit(what, &l); } EXPORT void* my32___localtime64(x64emu_t* emu, void* t) From ba082aaa2bf4cb615754cce68cba83eb054ece98 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 21:03:13 +0200 Subject: [PATCH 13/16] lfs: n/ftw Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 4 ++-- src/wrapped32/wrappedlibc.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 179d2e3344..9a405974e2 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2673,14 +2673,14 @@ EXPORT int my_scandirat64(x64emu_t *emu, int dirfd, void* dirp, void* namelist, EXPORT int my_ftw64(x64emu_t* emu, void* filename, void* func, int descriptors) { (void)emu; - return ftw64(filename, findftw64Fct(func), descriptors); + return ftw(filename, findftw64Fct(func), descriptors); } EXPORT int my_ftw(x64emu_t* emu, void* filename, void* func, int descriptors) __attribute__((alias("my_ftw64"))); EXPORT int32_t my_nftw64(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd, int32_t flags) { (void)emu; - return nftw64(pathname, findnftw64Fct(B), nopenfd, flags); + return nftw(pathname, findnftw64Fct(B), nopenfd, flags); } EXPORT int my_nftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd, int32_t flags) __attribute__((alias("my_nftw64"))); diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index cbc2b43376..da833bc25c 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -1701,11 +1701,11 @@ EXPORT int my32_mkstemps64(x64emu_t* emu, char* template, int suffixlen) EXPORT int32_t my32_ftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd) { - return ftw64(pathname, findftwFct(B), nopenfd); + return ftw(pathname, findftwFct(B), nopenfd); } EXPORT int32_t my32_nftw(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd, int32_t flags) { - return nftw64(pathname, findnftwFct(B), nopenfd, flags); + return nftw(pathname, findnftwFct(B), nopenfd, flags); } EXPORT void* my32_ldiv(x64emu_t* emu, void* p, int32_t num, int32_t den) @@ -1897,12 +1897,12 @@ EXPORT long my32_readv(x64emu_t* emu, int fd, struct i386_iovec* iov, int niov) EXPORT int my32_ftw64(x64emu_t* emu, void* filename, void* func, int descriptors) { - return ftw64(filename, findftw64Fct(func), descriptors); + return ftw(filename, findftw64Fct(func), descriptors); } EXPORT int32_t my32_nftw64(x64emu_t* emu, void* pathname, void* B, int32_t nopenfd, int32_t flags) { - return nftw64(pathname, findnftw64Fct(B), nopenfd, flags); + return nftw(pathname, findnftw64Fct(B), nopenfd, flags); } EXPORT ptr_t my32_environ = 0; //char** From 66b1a31844e6bbe02d2e5da2eefdb3503e7fe213 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 21:13:14 +0200 Subject: [PATCH 14/16] lfs: scandir/at, readdir Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 9 +++++---- src/wrapped32/wrappedlibc.c | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 9a405974e2..c6dae563e0 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -64,6 +64,7 @@ extern const char *const sys_siglist[] __asm__("__sys_siglist"); #include #include #include +#include #undef LOG_INFO #undef LOG_DEBUG @@ -2029,7 +2030,7 @@ EXPORT void* my_readdir(x64emu_t* emu, void* dirp) { if (BOX64ENV(fix_64bit_inodes)) { - struct dirent *dp64 = readdir64((DIR *)dirp); + struct dirent *dp64 = readdir((DIR *)dirp); if (!dp64) return NULL; uint32_t ino32 = dp64->d_ino ^ (dp64->d_ino >> 32); int32_t off32 = dp64->d_off; @@ -2065,7 +2066,7 @@ EXPORT int32_t my_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** resul *result = NULL; return 0; } - f = (iFppp_t)dlsym(lib->w.lib, "readdir64_r"); + f = (iFppp_t)dlsym(lib->w.lib, "readdir_r"); } int r = f(dirp, &d64, &dp64); @@ -2654,7 +2655,7 @@ EXPORT int32_t my_glob(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, vo EXPORT int my_scandir64(x64emu_t *emu, void* dir, void* namelist, void* sel, void* comp) { (void)emu; - return scandir64(dir, namelist, findfilter64Fct(sel), findcompare64Fct(comp)); + return scandir(dir, namelist, findfilter64Fct(sel), findcompare64Fct(comp)); } EXPORT int my_scandir(x64emu_t *emu, void* dir, void* namelist, void* sel, void* comp) __attribute__((alias("my_scandir64"))); @@ -2667,7 +2668,7 @@ EXPORT int my_scandirat(x64emu_t *emu, int dirfd, void* dirp, void* namelist, vo EXPORT int my_scandirat64(x64emu_t *emu, int dirfd, void* dirp, void* namelist, void* sel, void* comp) { (void)emu; - return scandirat64(dirfd, dirp, namelist, findfilter64Fct(sel), findcompare64Fct(comp)); + return scandirat(dirfd, dirp, namelist, findfilter64Fct(sel), findcompare64Fct(comp)); } EXPORT int my_ftw64(x64emu_t* emu, void* filename, void* func, int descriptors) diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index da833bc25c..df48119657 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -48,6 +48,7 @@ #endif #include #include +#include #include "wrappedlibs.h" @@ -1496,7 +1497,7 @@ EXPORT void* my32_fts_open(x64emu_t* emu, void* path, int options, void* c) EXPORT void* my32_readdir(x64emu_t* emu, void* dirp) { - struct dirent *dp64 = readdir64((DIR *)dirp); + struct dirent *dp64 = readdir((DIR *)dirp); if (!dp64) return NULL; static struct i386_dirent dp32 = {0}; uint32_t ino32 = dp64->d_ino ^ (dp64->d_ino >> 32); @@ -1523,7 +1524,7 @@ EXPORT int32_t my32_readdir_r(x64emu_t* emu, void* dirp, void* entry, void** res *result = NULL; return 0; } - f = (iFppp_t)dlsym(lib->priv.w.lib, "readdir64_r"); + f = (iFppp_t)dlsym(lib->priv.w.lib, "readdir_r"); } int r = f(dirp, &d64, &dp64); @@ -1817,7 +1818,7 @@ EXPORT void my32_globfree64(x64emu_t* emu, void* pglob) EXPORT int my32_scandir(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, void* comp) { struct dirent** list = NULL; - int ret = scandir64(dir, &list, findfilter_dirFct(sel), findcompare_dirFct(comp)); + int ret = scandir(dir, &list, findfilter_dirFct(sel), findcompare_dirFct(comp)); *namelist = to_ptrv(list); if (ret>0) { // adjust the array of dirent... inplace adjust of listname and inplace of dirent too @@ -1841,7 +1842,7 @@ EXPORT int my32_scandir(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, vo EXPORT int my32_scandir64(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, void* comp) { struct dirent** list; - int ret = scandir64(dir, &list, findfilter64Fct(sel), findcompare64Fct(comp)); + int ret = scandir(dir, &list, findfilter64Fct(sel), findcompare64Fct(comp)); if(ret>=0) *namelist = to_ptrv(list); if (ret>0) { From 817c4441b148c2e15a4cef58087597755e032fcb Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 21:24:46 +0200 Subject: [PATCH 15/16] lfs: glob, globfree, glob_t Signed-off-by: Pepper Gray --- src/wrapped/wrappedlibc.c | 2 +- src/wrapped32/wrappedlibc.c | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index c6dae563e0..39f07fcae6 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -2647,7 +2647,7 @@ EXPORT int32_t my_epoll_pwait2(x64emu_t* emu, int epfd, void* events, int maxeve EXPORT int32_t my_glob64(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) { (void)emu; - return glob64(pat, flags, findgloberrFct(errfnc), pglob); + return glob(pat, flags, findgloberrFct(errfnc), pglob); } EXPORT int32_t my_glob(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) __attribute__((alias("my_glob64"))); #endif diff --git a/src/wrapped32/wrappedlibc.c b/src/wrapped32/wrappedlibc.c index df48119657..e420f91c92 100755 --- a/src/wrapped32/wrappedlibc.c +++ b/src/wrapped32/wrappedlibc.c @@ -1752,7 +1752,7 @@ typedef struct my_glob_32_s ptr_t gl_lstat; //int (*gl_lstat) (const char *__restrict, struct stat *__restrict); ptr_t gl_stat; //int (*gl_stat) (const char *__restrict, struct stat *__restrict); } my_glob_32_t; -// glob64 is identical, except function are 64bits versions +// glob is identical, except function are 64bits versions static void convert_glob_to_32(void* d, void* s, int is64) { @@ -1783,36 +1783,36 @@ static void convert_glob_to_64(void* d, void* s, int is64) EXPORT int32_t my32_glob(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) { - glob64_t glob_l = {0}; + glob_t glob_l = {0}; if(flags & GLOB_ALTDIRFUNC) printf_log(LOG_NONE, "Error: using unsupport GLOB_ALTDIRFUNC in glob\n"); if(flags&(1<<5)) // GLOB_APPEND is used, so convert also before convert_glob_to_64(&glob_l, pglob, 0); - int ret = glob64(pat, flags, findgloberrFct(errfnc), &glob_l); + int ret = glob(pat, flags, findgloberrFct(errfnc), &glob_l); convert_glob_to_32(pglob, &glob_l, 0); return ret; } EXPORT void my32_globfree(x64emu_t* emu, void* pglob) { - glob64_t glob_l = {0}; + glob_t glob_l = {0}; convert_glob_to_64(&glob_l, pglob, 0); - globfree64(&glob_l); + globfree(&glob_l); } #ifndef ANDROID EXPORT int32_t my32_glob64(x64emu_t *emu, void* pat, int32_t flags, void* errfnc, void* pglob) { - glob64_t glob_l = {0}; + glob_t glob_l = {0}; if(flags & GLOB_ALTDIRFUNC) printf_log(LOG_NONE, "Error: using unsupport GLOB_ALTDIRFUNC in glob64\n"); if(flags&(1<<5)) // GLOB_APPEND is used, so convert also before convert_glob_to_64(&glob_l, pglob, 1); - int ret = glob64(pat, flags, findgloberrFct(errfnc), &glob_l); + int ret = glob(pat, flags, findgloberrFct(errfnc), &glob_l); convert_glob_to_32(pglob, &glob_l, 1); return ret; } EXPORT void my32_globfree64(x64emu_t* emu, void* pglob) { - glob64_t glob_l = {0}; + glob_t glob_l = {0}; convert_glob_to_64(&glob_l, pglob, 1); - globfree64(&glob_l); + globfree(&glob_l); } #endif EXPORT int my32_scandir(x64emu_t *emu, void* dir, ptr_t* namelist, void* sel, void* comp) From f88fca27c3b1510216a7433244009d0e7b402009 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 19 Oct 2026 22:49:06 +0200 Subject: [PATCH 16/16] replace legacy isnanf/isinff with isnan/isinf Signed-off-by: Pepper Gray --- src/emu/x64run0f.c | 34 +++++++++++----------- src/emu/x64run660f.c | 12 ++++---- src/emu/x64runavx0f.c | 60 +++++++++++++++++++-------------------- src/emu/x64runavx660f.c | 4 +-- src/emu/x64runavx660f3a.c | 18 ++++++------ src/emu/x64runavxf20f.c | 60 +++++++++++++++++++-------------------- src/emu/x64runavxf30f.c | 40 +++++++++++++------------- src/emu/x64runf20f.c | 54 +++++++++++++++++------------------ src/emu/x64runf30f.c | 42 +++++++++++++-------------- src/include/os.h | 8 ------ tests/test17.c | 2 +- tests/test30.c | 2 +- tests32/test17.c | 2 +- 13 files changed, 165 insertions(+), 173 deletions(-) diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c index 5c0cf3e012..1eb668e974 100644 --- a/src/emu/x64run0f.c +++ b/src/emu/x64run0f.c @@ -387,14 +387,14 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETEX8(0); GETGM; tmp64s = EX->f[1]; - if (tmp64s==(int32_t)tmp64s && !isnanf(EX->f[1])) + if (tmp64s==(int32_t)tmp64s && !isnan(EX->f[1])) GM->sd[1] = (int32_t)tmp64s; else { mxcsr_raise_invalid(emu); GM->sd[1] = INT32_MIN; } tmp64s = EX->f[0]; - if (tmp64s==(int32_t)tmp64s && !isnanf(EX->f[0])) + if (tmp64s==(int32_t)tmp64s && !isnan(EX->f[0])) GM->sd[0] = (int32_t)tmp64s; else { mxcsr_raise_invalid(emu); @@ -407,7 +407,7 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETEX8(0); GETGM; for(int i=1; i>=0; --i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { @@ -443,7 +443,7 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) nextop = F8; GETEX4(0); GETGX; - if(isnanf(GX->f[0]) || isnanf(EX->f[0])) { + if(isnan(GX->f[0]) || isnan(EX->f[0])) { SET_FLAG(F_ZF); SET_FLAG(F_PF); SET_FLAG(F_CF); } else if(isgreater(GX->f[0], EX->f[0])) { CLEAR_FLAG(F_ZF); CLEAR_FLAG(F_PF); CLEAR_FLAG(F_CF); @@ -854,13 +854,13 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(GX->f[i])) { + if(isnan(GX->f[i])) { GX->ud[i] |= 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] += EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } fesetround(oldround); @@ -872,13 +872,13 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(GX->f[i])) { + if(isnan(GX->f[i])) { GX->ud[i] |= 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] *= EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } fesetround(oldround); @@ -890,7 +890,7 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; #ifdef RV64 for(int i=1; i>=0; --i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->q[i] = ((uint64_t)(EX->ud[i] & 0x80000000) << 32) | ((uint64_t)(EX->ud[i] & 0x007fffff) << 29) | 0x7ff8000000000000ULL; @@ -920,13 +920,13 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(GX->f[i])) { + if(isnan(GX->f[i])) { GX->ud[i] |= 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] -= EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } fesetround(oldround); @@ -947,13 +947,13 @@ uintptr_t Run0F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(GX->f[i])) { + if(isnan(GX->f[i])) { GX->ud[i] |= 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] /= EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } fesetround(oldround); diff --git a/src/emu/x64run660f.c b/src/emu/x64run660f.c index 15af029439..cfee100af8 100644 --- a/src/emu/x64run660f.c +++ b/src/emu/x64run660f.c @@ -900,7 +900,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) fesetround(FE_TONEAREST); for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -911,7 +911,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) case ROUND_Down: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -920,7 +920,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) case ROUND_Up: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -929,7 +929,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) case ROUND_Chop: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -995,7 +995,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) GETGX; tmp8u = F8; // ignoring bit 3 interupt thingy #ifdef RV64 - if(isnanf(EX->f[0])) { + if(isnan(EX->f[0])) { GX->ud[0] = EX->ud[0] | 0x00400000; break; } @@ -1461,7 +1461,7 @@ uintptr_t Run660F(x64emu_t *emu, rex_t rex, uintptr_t addr) GETEX(0); GETGX; for(int i=0; i<4; ++i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { diff --git a/src/emu/x64runavx0f.c b/src/emu/x64runavx0f.c index 623f2bfc34..b6a973e1b1 100644 --- a/src/emu/x64runavx0f.c +++ b/src/emu/x64runavx0f.c @@ -398,26 +398,26 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGY; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(VX->f[i])) { + if(isnan(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] = VX->f[i] + EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(vex.l) { GETEY; GETVY; for(int i=0; i<4; ++i) { - if(isnanf(VY->f[i])) { + if(isnan(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; - } else if(isnanf(EY->f[i])) { + } else if(isnan(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } else { GY->f[i] = VY->f[i] + EY->f[i]; - if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; + if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } } else @@ -433,26 +433,26 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGY; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(VX->f[i])) { + if(isnan(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] = VX->f[i] * EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(vex.l) { GETEY; GETVY; for(int i=0; i<4; ++i) { - if(isnanf(VY->f[i])) { + if(isnan(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; - } else if(isnanf(EY->f[i])) { + } else if(isnan(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } else { GY->f[i] = VY->f[i] * EY->f[i]; - if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; + if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } } else @@ -468,7 +468,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) if (vex.l) { #ifdef RV64 for (int i = 1; i >= 0; --i) { - if (isnanf(EX->f[i + 2])) + if (isnan(EX->f[i + 2])) GY->q[i] = ((uint64_t)(EX->ud[i + 2] & 0x80000000) << 32) | ((uint64_t)(EX->ud[i + 2] & 0x007fffff) << 29) | 0x7ff8000000000000ULL; @@ -483,7 +483,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GY->u128 = 0; #ifdef RV64 for (int i = 1; i >= 0; --i) { - if (isnanf(EX->f[i])) + if (isnan(EX->f[i])) GX->q[i] = ((uint64_t)(EX->ud[i] & 0x80000000) << 32) | ((uint64_t)(EX->ud[i] & 0x007fffff) << 29) | 0x7ff8000000000000ULL; @@ -525,26 +525,26 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGY; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(VX->f[i])) { + if(isnan(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] = VX->f[i] - EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(vex.l) { GETEY; GETVY; for(int i=0; i<4; ++i) { - if(isnanf(VY->f[i])) { + if(isnan(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; - } else if(isnanf(EY->f[i])) { + } else if(isnan(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } else { GY->f[i] = VY->f[i] - EY->f[i]; - if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; + if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } } else @@ -559,7 +559,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; for(int i=0; i<4; ++i) - if (isnanf(VX->f[i]) || isnanf(EX->f[i]) || islessequal(EX->f[i], VX->f[i])) + if (isnan(VX->f[i]) || isnan(EX->f[i]) || islessequal(EX->f[i], VX->f[i])) GX->f[i] = EX->f[i]; else GX->f[i] = VX->f[i]; @@ -567,7 +567,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETEY; GETVY; for(int i=0; i<4; ++i) - if (isnanf(VY->f[i]) || isnanf(EY->f[i]) || islessequal(EY->f[i], VY->f[i])) + if (isnan(VY->f[i]) || isnan(EY->f[i]) || islessequal(EY->f[i], VY->f[i])) GY->f[i] = EY->f[i]; else GY->f[i] = VY->f[i]; @@ -582,26 +582,26 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGY; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(VX->f[i])) { + if(isnan(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; - } else if(isnanf(EX->f[i])) { + } else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } else { GX->f[i] = VX->f[i] / EX->f[i]; - if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; + if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(vex.l) { GETEY; GETVY; for(int i=0; i<4; ++i) { - if(isnanf(VY->f[i])) { + if(isnan(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; - } else if(isnanf(EY->f[i])) { + } else if(isnan(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } else { GY->f[i] = VY->f[i] / EY->f[i]; - if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; + if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } } else @@ -616,7 +616,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; for(int i=0; i<4; ++i) - if (isnanf(VX->f[i]) || isnanf(EX->f[i]) || isgreaterequal(EX->f[i], VX->f[i])) + if (isnan(VX->f[i]) || isnan(EX->f[i]) || isgreaterequal(EX->f[i], VX->f[i])) GX->f[i] = EX->f[i]; else GX->f[i] = VX->f[i]; @@ -624,7 +624,7 @@ uintptr_t RunAVX_0F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETEY; GETVY; for(int i=0; i<4; ++i) - if (isnanf(VY->f[i]) || isnanf(EY->f[i]) || isgreaterequal(EY->f[i], VY->f[i])) + if (isnan(VY->f[i]) || isnan(EY->f[i]) || isgreaterequal(EY->f[i], VY->f[i])) GY->f[i] = EY->f[i]; else GY->f[i] = VY->f[i]; diff --git a/src/emu/x64runavx660f.c b/src/emu/x64runavx660f.c index 4c1590047a..9ab9be5742 100644 --- a/src/emu/x64runavx660f.c +++ b/src/emu/x64runavx660f.c @@ -439,7 +439,7 @@ uintptr_t RunAVX_660F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGX; GETGY; for(int i=0; i<4; ++i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { @@ -470,7 +470,7 @@ uintptr_t RunAVX_660F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) if(vex.l) { GETEY; for(int i=0; i<4; ++i) { - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { diff --git a/src/emu/x64runavx660f3a.c b/src/emu/x64runavx660f3a.c index 67f4bd0a0d..eb7d74311f 100644 --- a/src/emu/x64runavx660f3a.c +++ b/src/emu/x64runavx660f3a.c @@ -190,7 +190,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) fesetround(FE_TONEAREST); for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -201,7 +201,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Down: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -210,7 +210,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Up: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -219,7 +219,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Chop: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; else #endif @@ -234,7 +234,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) fesetround(FE_TONEAREST); for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) GY->ud[i] = EY->ud[i] | 0x00400000; else #endif @@ -245,7 +245,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Down: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) GY->ud[i] = EY->ud[i] | 0x00400000; else #endif @@ -254,7 +254,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Up: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) GY->ud[i] = EY->ud[i] | 0x00400000; else #endif @@ -263,7 +263,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) case ROUND_Chop: for(int i=0; i<4; ++i) #ifdef RV64 - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) GY->ud[i] = EY->ud[i] | 0x00400000; else #endif @@ -377,7 +377,7 @@ uintptr_t RunAVX_660F3A(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGX; GETVX; GETGY; tmp8u = F8; // ignoring bit 3 interupt thingy #ifdef RV64 - if(isnanf(EX->f[0])) { + if(isnan(EX->f[0])) { GX->ud[0] = EX->ud[0] | 0x00400000; } else #endif diff --git a/src/emu/x64runavxf20f.c b/src/emu/x64runavxf20f.c index 5236d17e53..7a73caee6a 100644 --- a/src/emu/x64runavxf20f.c +++ b/src/emu/x64runavxf20f.c @@ -367,9 +367,9 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) int oldround = mxcsr_setround(emu); for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(VX->f[j])) GX->ud[i] = VX->ud[j] | 0x00400000; - else if(isnanf(VX->f[j+1])) GX->ud[i] = VX->ud[j+1] | 0x00400000; - else { GX->f[i] = VX->f[j] + VX->f[j+1]; if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; } + if(isnan(VX->f[j])) GX->ud[i] = VX->ud[j] | 0x00400000; + else if(isnan(VX->f[j+1])) GX->ud[i] = VX->ud[j+1] | 0x00400000; + else { GX->f[i] = VX->f[j] + VX->f[j+1]; if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(EX==VX) { GX->ud[2] = GX->ud[0]; @@ -377,17 +377,17 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) } else { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(EX->f[j])) GX->ud[i+2] = EX->ud[j] | 0x00400000; - else if(isnanf(EX->f[j+1])) GX->ud[i+2] = EX->ud[j+1] | 0x00400000; - else { GX->f[i+2] = EX->f[j] + EX->f[j+1]; if(isnanf(GX->f[i+2])) GX->ud[i+2] |= 0x80000000; } + if(isnan(EX->f[j])) GX->ud[i+2] = EX->ud[j] | 0x00400000; + else if(isnan(EX->f[j+1])) GX->ud[i+2] = EX->ud[j+1] | 0x00400000; + else { GX->f[i+2] = EX->f[j] + EX->f[j+1]; if(isnan(GX->f[i+2])) GX->ud[i+2] |= 0x80000000; } } } if(vex.l) { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(VY->f[j])) GY->ud[i] = VY->ud[j] | 0x00400000; - else if(isnanf(VY->f[j+1])) GY->ud[i] = VY->ud[j+1] | 0x00400000; - else { GY->f[i] = VY->f[j] + VY->f[j+1]; if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; } + if(isnan(VY->f[j])) GY->ud[i] = VY->ud[j] | 0x00400000; + else if(isnan(VY->f[j+1])) GY->ud[i] = VY->ud[j+1] | 0x00400000; + else { GY->f[i] = VY->f[j] + VY->f[j+1]; if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } if(EY==VY) { GY->ud[2] = GY->ud[0]; @@ -395,9 +395,9 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) } else { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(EY->f[j])) GY->ud[i+2] = EY->ud[j] | 0x00400000; - else if(isnanf(EY->f[j+1])) GY->ud[i+2] = EY->ud[j+1] | 0x00400000; - else { GY->f[i+2] = EY->f[j] + EY->f[j+1]; if(isnanf(GY->f[i+2])) GY->ud[i+2] |= 0x80000000; } + if(isnan(EY->f[j])) GY->ud[i+2] = EY->ud[j] | 0x00400000; + else if(isnan(EY->f[j+1])) GY->ud[i+2] = EY->ud[j+1] | 0x00400000; + else { GY->f[i+2] = EY->f[j] + EY->f[j+1]; if(isnan(GY->f[i+2])) GY->ud[i+2] |= 0x80000000; } } } } else @@ -425,9 +425,9 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) int oldround = mxcsr_setround(emu); for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(VX->f[j])) GX->ud[i] = VX->ud[j] | 0x00400000; - else if(isnanf(VX->f[j+1])) GX->ud[i] = VX->ud[j+1] | 0x00400000; - else { GX->f[i] = VX->f[j] - VX->f[j+1]; if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; } + if(isnan(VX->f[j])) GX->ud[i] = VX->ud[j] | 0x00400000; + else if(isnan(VX->f[j+1])) GX->ud[i] = VX->ud[j+1] | 0x00400000; + else { GX->f[i] = VX->f[j] - VX->f[j+1]; if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if (EX == VX) { GX->ud[2] = GX->ud[0]; @@ -435,17 +435,17 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) } else { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(EX->f[j])) GX->ud[i+2] = EX->ud[j] | 0x00400000; - else if(isnanf(EX->f[j+1])) GX->ud[i+2] = EX->ud[j+1] | 0x00400000; - else { GX->f[i+2] = EX->f[j] - EX->f[j+1]; if(isnanf(GX->f[i+2])) GX->ud[i+2] |= 0x80000000; } + if(isnan(EX->f[j])) GX->ud[i+2] = EX->ud[j] | 0x00400000; + else if(isnan(EX->f[j+1])) GX->ud[i+2] = EX->ud[j+1] | 0x00400000; + else { GX->f[i+2] = EX->f[j] - EX->f[j+1]; if(isnan(GX->f[i+2])) GX->ud[i+2] |= 0x80000000; } } } if (vex.l) { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(VY->f[j])) GY->ud[i] = VY->ud[j] | 0x00400000; - else if(isnanf(VY->f[j+1])) GY->ud[i] = VY->ud[j+1] | 0x00400000; - else { GY->f[i] = VY->f[j] - VY->f[j+1]; if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; } + if(isnan(VY->f[j])) GY->ud[i] = VY->ud[j] | 0x00400000; + else if(isnan(VY->f[j+1])) GY->ud[i] = VY->ud[j+1] | 0x00400000; + else { GY->f[i] = VY->f[j] - VY->f[j+1]; if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } if (EY == VY) { GY->ud[2] = GY->ud[0]; @@ -453,9 +453,9 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) } else { for(int i=0; i<2; ++i) { int j = i*2; - if(isnanf(EY->f[j])) GY->ud[i+2] = EY->ud[j] | 0x00400000; - else if(isnanf(EY->f[j+1])) GY->ud[i+2] = EY->ud[j+1] | 0x00400000; - else { GY->f[i+2] = EY->f[j] - EY->f[j+1]; if(isnanf(GY->f[i+2])) GY->ud[i+2] |= 0x80000000; } + if(isnan(EY->f[j])) GY->ud[i+2] = EY->ud[j] | 0x00400000; + else if(isnan(EY->f[j+1])) GY->ud[i+2] = EY->ud[j+1] | 0x00400000; + else { GY->f[i+2] = EY->f[j] - EY->f[j+1]; if(isnan(GY->f[i+2])) GY->ud[i+2] |= 0x80000000; } } } } else @@ -508,15 +508,15 @@ uintptr_t RunAVX_F20F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) } int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; } - else if(isnanf(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } - else { if(i&1) GX->f[i] = VX->f[i] + EX->f[i]; else GX->f[i] = VX->f[i] - EX->f[i]; if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; } + if(isnan(VX->f[i])) { GX->ud[i] = VX->ud[i] | 0x00400000; } + else if(isnan(EX->f[i])) { GX->ud[i] = EX->ud[i] | 0x00400000; } + else { if(i&1) GX->f[i] = VX->f[i] + EX->f[i]; else GX->f[i] = VX->f[i] - EX->f[i]; if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } if(vex.l) { for(int i=0; i<4; ++i) { - if(isnanf(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; } - else if(isnanf(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } - else { if(i&1) GY->f[i] = VY->f[i] + EY->f[i]; else GY->f[i] = VY->f[i] - EY->f[i]; if(isnanf(GY->f[i])) GY->ud[i] |= 0x80000000; } + if(isnan(VY->f[i])) { GY->ud[i] = VY->ud[i] | 0x00400000; } + else if(isnan(EY->f[i])) { GY->ud[i] = EY->ud[i] | 0x00400000; } + else { if(i&1) GY->f[i] = VY->f[i] + EY->f[i]; else GY->f[i] = VY->f[i] - EY->f[i]; if(isnan(GY->f[i])) GY->ud[i] |= 0x80000000; } } } else GY->u128 = 0; diff --git a/src/emu/x64runavxf30f.c b/src/emu/x64runavxf30f.c index 4999138900..ca4fd014b8 100644 --- a/src/emu/x64runavxf30f.c +++ b/src/emu/x64runavxf30f.c @@ -139,13 +139,13 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETEX(0); GETGD; if (rex.w) { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { mxcsr_raise_invalid(emu); GD->q[0] = 0x8000000000000000LL; } else GD->sq[0] = EX->f[0]; } else { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffff) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffff) { mxcsr_raise_invalid(emu); GD->dword[0] = 0x80000000; } else @@ -158,7 +158,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETEX(0); GETGD; if(rex.w) { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { mxcsr_raise_invalid(emu); GD->q[0] = 0x8000000000000000LL; } else @@ -181,7 +181,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) break; } } else { - if(isnanf(EX->f[0])) + if(isnan(EX->f[0])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { @@ -219,7 +219,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) int oldround = mxcsr_setround(emu); if(EX->f[0]<0.0 ) GX->f[0] = -NAN; - else if(isnanf(EX->f[0])) + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else GX->f[0] = sqrt(EX->f[0]); @@ -270,9 +270,9 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; int oldround = mxcsr_setround(emu); - if(isnanf(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; - else { GX->f[0] = VX->f[0] + EX->f[0]; if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + else { GX->f[0] = VX->f[0] + EX->f[0]; if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } if(GX!=VX) { GX->ud[1] = VX->ud[1]; GX->q[1] = VX->q[1]; @@ -288,9 +288,9 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; int oldround = mxcsr_setround(emu); - if(isnanf(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; - else { GX->f[0] = VX->f[0] * EX->f[0]; if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + else { GX->f[0] = VX->f[0] * EX->f[0]; if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } if(GX!=VX) { GX->ud[1] = VX->ud[1]; GX->q[1] = VX->q[1]; @@ -306,7 +306,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; #ifdef RV64 - if(isnanf(EX->f[0])) + if(isnan(EX->f[0])) GX->q[0] = ((uint64_t)(EX->ud[0] & 0x80000000) << 32) | ((uint64_t)(EX->ud[0] & 0x007fffff) << 29) | 0x7ff8000000000000ULL; @@ -324,7 +324,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETGX; GETGY; for(int i=0; i<4; ++i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) tmp64s = INT32_MIN; else tmp64s = EX->f[i]; @@ -338,7 +338,7 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) if(vex.l) { GETEY; for(int i=0; i<4; ++i) { - if(isnanf(EY->f[i])) + if(isnan(EY->f[i])) tmp64s = INT32_MIN; else tmp64s = EY->f[i]; @@ -359,9 +359,9 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; int oldround = mxcsr_setround(emu); - if(isnanf(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; - else { GX->f[0] = VX->f[0] - EX->f[0]; if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + else { GX->f[0] = VX->f[0] - EX->f[0]; if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } if(GX!=VX) { GX->ud[1] = VX->ud[1]; GX->q[1] = VX->q[1]; @@ -394,9 +394,9 @@ uintptr_t RunAVX_F30F(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step) GETVX; GETGY; int oldround = mxcsr_setround(emu); - if(isnanf(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; - else { GX->f[0] = VX->f[0] / EX->f[0]; if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(VX->f[0])) GX->ud[0] = VX->ud[0] | 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + else { GX->f[0] = VX->f[0] / EX->f[0]; if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } if(GX!=VX) { GX->ud[1] = VX->ud[1]; GX->q[1] = VX->q[1]; diff --git a/src/emu/x64runf20f.c b/src/emu/x64runf20f.c index aea79a5351..af15a4825a 100644 --- a/src/emu/x64runf20f.c +++ b/src/emu/x64runf20f.c @@ -372,40 +372,40 @@ uintptr_t RunF20F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); eax1 = *GX; - if(isnanf(eax1.f[0])) { + if(isnan(eax1.f[0])) { GX->ud[0] = eax1.ud[0] | 0x00400000; - } else if(isnanf(eax1.f[1])) { + } else if(isnan(eax1.f[1])) { GX->ud[0] = eax1.ud[1] | 0x00400000; } else { GX->f[0] = eax1.f[0] + eax1.f[1]; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } - if(isnanf(eax1.f[2])) { + if(isnan(eax1.f[2])) { GX->ud[1] = eax1.ud[2] | 0x00400000; - } else if(isnanf(eax1.f[3])) { + } else if(isnan(eax1.f[3])) { GX->ud[1] = eax1.ud[3] | 0x00400000; } else { GX->f[1] = eax1.f[2] + eax1.f[3]; - if(isnanf(GX->f[1])) GX->ud[1] |= 0x80000000; + if(isnan(GX->f[1])) GX->ud[1] |= 0x80000000; } if(EX==GX) { GX->q[1] = GX->q[0]; } else { - if(isnanf(EX->f[0])) { + if(isnan(EX->f[0])) { GX->ud[2] = EX->ud[0] | 0x00400000; - } else if(isnanf(EX->f[1])) { + } else if(isnan(EX->f[1])) { GX->ud[2] = EX->ud[1] | 0x00400000; } else { GX->f[2] = EX->f[0] + EX->f[1]; - if(isnanf(GX->f[2])) GX->ud[2] |= 0x80000000; + if(isnan(GX->f[2])) GX->ud[2] |= 0x80000000; } - if(isnanf(EX->f[2])) { + if(isnan(EX->f[2])) { GX->ud[3] = EX->ud[2] | 0x00400000; - } else if(isnanf(EX->f[3])) { + } else if(isnan(EX->f[3])) { GX->ud[3] = EX->ud[3] | 0x00400000; } else { GX->f[3] = EX->f[2] + EX->f[3]; - if(isnanf(GX->f[3])) GX->ud[3] |= 0x80000000; + if(isnan(GX->f[3])) GX->ud[3] |= 0x80000000; } } fesetround(oldround); @@ -417,40 +417,40 @@ uintptr_t RunF20F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); eax1 = *GX; - if(isnanf(eax1.f[0])) { + if(isnan(eax1.f[0])) { GX->ud[0] = eax1.ud[0] | 0x00400000; - } else if(isnanf(eax1.f[1])) { + } else if(isnan(eax1.f[1])) { GX->ud[0] = eax1.ud[1] | 0x00400000; } else { GX->f[0] = eax1.f[0] - eax1.f[1]; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } - if(isnanf(eax1.f[2])) { + if(isnan(eax1.f[2])) { GX->ud[1] = eax1.ud[2] | 0x00400000; - } else if(isnanf(eax1.f[3])) { + } else if(isnan(eax1.f[3])) { GX->ud[1] = eax1.ud[3] | 0x00400000; } else { GX->f[1] = eax1.f[2] - eax1.f[3]; - if(isnanf(GX->f[1])) GX->ud[1] |= 0x80000000; + if(isnan(GX->f[1])) GX->ud[1] |= 0x80000000; } if(EX==GX) { GX->q[1] = GX->q[0]; } else { - if(isnanf(EX->f[0])) { + if(isnan(EX->f[0])) { GX->ud[2] = EX->ud[0] | 0x00400000; - } else if(isnanf(EX->f[1])) { + } else if(isnan(EX->f[1])) { GX->ud[2] = EX->ud[1] | 0x00400000; } else { GX->f[2] = EX->f[0] - EX->f[1]; - if(isnanf(GX->f[2])) GX->ud[2] |= 0x80000000; + if(isnan(GX->f[2])) GX->ud[2] |= 0x80000000; } - if(isnanf(EX->f[2])) { + if(isnan(EX->f[2])) { GX->ud[3] = EX->ud[2] | 0x00400000; - } else if(isnanf(EX->f[3])) { + } else if(isnan(EX->f[3])) { GX->ud[3] = EX->ud[3] | 0x00400000; } else { GX->f[3] = EX->f[2] - EX->f[3]; - if(isnanf(GX->f[3])) GX->ud[3] |= 0x80000000; + if(isnan(GX->f[3])) GX->ud[3] |= 0x80000000; } } fesetround(oldround); @@ -510,9 +510,9 @@ uintptr_t RunF20F(x64emu_t *emu, rex_t rex, uintptr_t addr, int *step) GETGX; int oldround = mxcsr_setround(emu); for(int i=0; i<4; ++i) { - if(isnanf(GX->f[i])) GX->ud[i] |= 0x00400000; - else if(isnanf(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; - else { if(i&1) GX->f[i] += EX->f[i]; else GX->f[i] -= EX->f[i]; if(isnanf(GX->f[i])) GX->ud[i] |= 0x80000000; } + if(isnan(GX->f[i])) GX->ud[i] |= 0x00400000; + else if(isnan(EX->f[i])) GX->ud[i] = EX->ud[i] | 0x00400000; + else { if(i&1) GX->f[i] += EX->f[i]; else GX->f[i] -= EX->f[i]; if(isnan(GX->f[i])) GX->ud[i] |= 0x80000000; } } fesetround(oldround); } diff --git a/src/emu/x64runf30f.c b/src/emu/x64runf30f.c index 12ecaff759..d744ad7709 100644 --- a/src/emu/x64runf30f.c +++ b/src/emu/x64runf30f.c @@ -111,13 +111,13 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) GETEX4(0); GETGD; if (rex.w) { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { mxcsr_raise_invalid(emu); GD->q[0] = 0x8000000000000000LL; } else GD->sq[0] = EX->f[0]; } else { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffff) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffff) { mxcsr_raise_invalid(emu); GD->dword[0] = 0x80000000; } else @@ -130,7 +130,7 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) GETEX4(0); GETGD; if(rex.w) { - if(isnanf(EX->f[0]) || isinff(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { + if(isnan(EX->f[0]) || isinf(EX->f[0]) || EX->f[0]>=(float)0x7fffffffffffffffLL) { mxcsr_raise_invalid(emu); GD->q[0] = 0x8000000000000000LL; } else @@ -153,7 +153,7 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) break; } } else { - if(isnanf(EX->f[0])) + if(isnan(EX->f[0])) tmp64s = INT32_MIN; else switch(emu->mxcsr.f.MXCSR_RC) { @@ -235,7 +235,7 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) GETGX; if (EX->f[0]<0) GX->f[0] = -NAN; - else if (isnanf(EX->f[0])) + else if (isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else{ int oldround = mxcsr_setround(emu); @@ -262,22 +262,22 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) nextop = F8; GETEX(0); GETGX; - if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; - else { GX->f[0] = 1.0f/EX->f[0]; if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + else { GX->f[0] = 1.0f/EX->f[0]; if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } break; case 0x58: /* ADDSS Gx, Ex */ nextop = F8; GETEX(0); GETGX; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else { int oldround = mxcsr_setround(emu); GX->f[0] += EX->f[0]; fesetround(oldround); - if(isnanf(GX->f[0])) + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } break; @@ -285,20 +285,20 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) nextop = F8; GETEX4(0); GETGX; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else { int oldround = mxcsr_setround(emu); GX->f[0] *= EX->f[0]; fesetround(oldround); - if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } break; case 0x5A: /* CVTSS2SD Gx, Ex */ nextop = F8; GETEX4(0); GETGX; #ifdef RV64 - if(isnanf(EX->f[0])) + if(isnan(EX->f[0])) GX->q[0] = ((uint64_t)(EX->ud[0] & 0x80000000) << 32) | ((uint64_t)(EX->ud[0] & 0x007fffff) << 29) | 0x7ff8000000000000ULL; @@ -313,7 +313,7 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) GETEX(0); GETGX; for(int i=0; i<4; ++i) { - if(isnanf(EX->f[i])) + if(isnan(EX->f[i])) tmp64s = INT32_MIN; else tmp64s = EX->f[i]; @@ -329,13 +329,13 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) nextop = F8; GETEX4(0); GETGX; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else { int oldround = mxcsr_setround(emu); GX->f[0] -= EX->f[0]; fesetround(oldround); - if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } break; case 0x5D: /* MINSS Gx, Ex */ nextop = F8; @@ -348,13 +348,13 @@ uintptr_t RunF30F(x64emu_t *emu, rex_t rex, uintptr_t addr, int* step) nextop = F8; GETEX4(0); GETGX; - if(isnanf(GX->f[0])) GX->ud[0] |= 0x00400000; - else if(isnanf(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; + if(isnan(GX->f[0])) GX->ud[0] |= 0x00400000; + else if(isnan(EX->f[0])) GX->ud[0] = EX->ud[0] | 0x00400000; else { int oldround = mxcsr_setround(emu); GX->f[0] /= EX->f[0]; fesetround(oldround); - if(isnanf(GX->f[0])) GX->ud[0] |= 0x80000000; } + if(isnan(GX->f[0])) GX->ud[0] |= 0x80000000; } break; case 0x5F: /* MAXSS Gx, Ex */ nextop = F8; diff --git a/src/include/os.h b/src/include/os.h index e2f8d50c31..f66400db34 100644 --- a/src/include/os.h +++ b/src/include/os.h @@ -98,14 +98,6 @@ const char* GetBridgeName(void* p); #define PROT_WRITE 0x2 #define PROT_EXEC 0x4 -#if defined(__clang__) && !defined(_WIN32) -extern int isinff(float); -extern int isnanf(float); -#elif defined(_WIN32) -#define isnanf isnan -#define isinff isinf -#endif - void PrintfFtrace(int prefix, const char* fmt, ...); void* GetEnv(const char* name); diff --git a/tests/test17.c b/tests/test17.c index 9e5260fbf3..19607d1f1c 100644 --- a/tests/test17.c +++ b/tests/test17.c @@ -148,7 +148,7 @@ void print_64(v128 v) { #define print_128 print_64 void print_ps(v128 v) { for(int i=0; i<4; ++i) - if(isnanf(v.f32[i])) + if(isnan(v.f32[i])) printf("nan "); else printf("%g ", v.f32[i]); diff --git a/tests/test30.c b/tests/test30.c index e611306fd2..21ec6c177b 100644 --- a/tests/test30.c +++ b/tests/test30.c @@ -163,7 +163,7 @@ void print_64(v128 v) { #define print_128 print_64 void print_ps(v128 v) { for(int i=0; i<4; ++i) - if(isnanf(v.f32[i])) + if(isnan(v.f32[i])) printf("%cnan ", (v.u32[i]&0x80000000)?'-':'+'); else printf("%g ", v.f32[i]); diff --git a/tests32/test17.c b/tests32/test17.c index 04968b6f44..f4c7d6e1c9 100644 --- a/tests32/test17.c +++ b/tests32/test17.c @@ -148,7 +148,7 @@ void print_64(v128 v) { #define print_128 print_64 void print_ps(v128 v) { for(int i=0; i<4; ++i) - if(isnanf(v.f32[i])) + if(isnan(v.f32[i])) printf("nan "); else printf("%g ", v.f32[i]);