From 012a19368522dbae909b3ff867499eda03f24d6d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 30 Mar 2020 00:46:58 +0300 Subject: [PATCH] wscript: check for stdint.h and use it, instead use pstdint.h --- wscript | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wscript b/wscript index d2950e04..7ca3a3a4 100644 --- a/wscript +++ b/wscript @@ -347,6 +347,14 @@ def configure(conf): else: conf.undefine('HAVE_TGMATH_H') + # check if we can use C99 stdint + if conf.check_cc(header_name='stdint.h', mandatory=False): + # use system + conf.define('STDINT_H', 'stdint.h') + else: + # include portable stdint by Paul Hsich + conf.define('STDINT_H', 'pstdint.h') + conf.env.DEDICATED = conf.options.DEDICATED conf.env.SINGLE_BINARY = conf.options.SINGLE_BINARY or conf.env.DEDICATED if conf.env.DEST_OS == 'dos':