diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2023-11-24 15:50:13 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2023-11-24 15:50:13 (GMT) |
commit | edc14d6647d3819a9c6ee076ccc3c65f2283600b (patch) | |
tree | bd702fd1cc6eb7ed504f38e0248fbc7bcfc87903 /SCons/SConfTests.py | |
parent | b760704543953ca82a9d9a422667394c4fcb39b9 (diff) | |
download | SCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.zip SCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.tar.gz SCons-edc14d6647d3819a9c6ee076ccc3c65f2283600b.tar.bz2 |
Fix 4320: add an optional argument list string to the configure CheckFunc method.
Add an optional argument list string so the generated function argument list matches the function's prototype when including a header file.
Diffstat (limited to 'SCons/SConfTests.py')
-rw-r--r-- | SCons/SConfTests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SCons/SConfTests.py b/SCons/SConfTests.py index 2903ba6..6e9aa62 100644 --- a/SCons/SConfTests.py +++ b/SCons/SConfTests.py @@ -676,6 +676,8 @@ int main(void) { assert r, "did not find strcpy" r = sconf.CheckFunc('strcpy', '/* header */ char strcpy();') assert r, "did not find strcpy" + r = sconf.CheckFunc('strcpy', header='/* header */ char *strcpy(char *dest, char *src);', funcargs='"", ""') + assert r, "did not find strcpy" r = sconf.CheckFunc('hopefullynofunction') assert not r, "unexpectedly found hopefullynofunction" |