mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
waf: added check for memrchr()
needed on macos
This commit is contained in:
parent
d9b9638b4a
commit
bdacc410ca
@ -128,6 +128,19 @@ def ap_common_checks(cfg):
|
||||
|
||||
cfg.check(header_name='byteswap.h', mandatory=False)
|
||||
|
||||
cfg.check(
|
||||
compiler='cxx',
|
||||
fragment='''
|
||||
#include <string.h>
|
||||
int main() {
|
||||
const char *s = "abc";
|
||||
return memrchr((const void *)s, 0, 3) != NULL;
|
||||
}''',
|
||||
define_name="HAVE_MEMRCHR",
|
||||
msg="Checking for HAVE_MEMRCHR",
|
||||
mandatory=False,
|
||||
)
|
||||
|
||||
@conf
|
||||
def check_librt(cfg, env):
|
||||
if cfg.env.DEST_OS == 'darwin':
|
||||
|
Loading…
Reference in New Issue
Block a user