From c61c84ad4f6ce68754575a913f5f624e4f72c8b6 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 25 Apr 2023 12:39:47 +0300 Subject: [PATCH] Revert "wscript: check malloc.h first to make checks on Windows slightly faster" This reverts commit 1464e1e2be84293bb98e8c585785217478dbaba5. --- wscript | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wscript b/wscript index 252fb5b6..43ee1894 100644 --- a/wscript +++ b/wscript @@ -346,10 +346,10 @@ def configure(conf): conf.define('STDINT_H', 'stdint.h' if conf.check_cc(header_name='stdint.h', mandatory=False) else 'pstdint.h') # check if we can use alloca.h or malloc.h - for hdr in ['malloc.h', 'alloca.h']: - if conf.check_cc(header_name=hdr, mandatory=False): - conf.define('ALLOCA_H', hdr) - break + if conf.check_cc(header_name='alloca.h', mandatory=False): + conf.define('ALLOCA_H', 'alloca.h') + elif conf.check_cc(header_name='malloc.h', mandatory=False): + conf.define('ALLOCA_H', 'malloc.h') if conf.env.DEST_OS == 'nswitch': conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')