diff options
author | asomers <asomers@FreeBSD.org> | 2016-11-22 21:02:35 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2016-11-22 21:02:35 +0000 |
commit | 85ab3484848d43e51b5521ecf8feb72e1fcc8bcc (patch) | |
tree | ce6b526f1fe8285a98737af3339bd0907ffcfbf5 /lib/libc/stdlib | |
parent | 557900b8a07cd12e5c0a066c956f7109fe050186 (diff) | |
download | FreeBSD-src-85ab3484848d43e51b5521ecf8feb72e1fcc8bcc.zip FreeBSD-src-85ab3484848d43e51b5521ecf8feb72e1fcc8bcc.tar.gz |
MFC r307584 (partially)
307584 added the __min_size macro and replaced some static array sizes with
__min_size. However, stable/10 doesn't yet have any static array sizes, so
all this MFC does is add the __min_size macro.
Original commit message:
Fix C++ includability of crypto headers with static array sizes
C99 allows array function parameters to use the static keyword for their
sizes. This tells the compiler that the parameter will have at least the
specified size, and calling code will fail to compile if that guarantee is
not met. However, this syntax is not legal in C++.
This commit reverts r300824, which worked around the problem for
sys/sys/md5.h only, and introduces a new macro: min_size(). min_size(x) can
be used in headers as a static array size, but will still compile in C++
mode.
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions