svn commit: r300824 - head/lib/libmd
Ed Schouten
ed at nuxi.nl
Fri May 27 06:35:16 UTC 2016
Hi Conrad,
2016-05-27 7:31 GMT+02:00 Conrad E. Meyer <cem at freebsd.org>:
> libmd: Work around C++'s inability to understand C
So C++ doesn't support using 'static' within array types, right? What
I personally dislike about this specific change:
- Including <sys/md5.h> directly still doesn't work.
- If <sys/md5.h> is ever going to include a 'static inline' function,
the static keyword would also be stripped off.
Would it make sense to come up with a macro in <sys/cdefs.h> to deal with this?
#if defined(__cplusplus) || defined(ancient compiler)
#define __minimum_size(n) n
#else
#define __minimum_size(n) static (n)
#endif
That way we can annotate this everwhere we'd want, without needing to
care about compiler versions, languages, etc.
--
Ed Schouten <ed at nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717
More information about the svn-src-all
mailing list