summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorjvoisin2025-11-14 16:25:52 +0100
committerjvoisin2025-11-14 16:56:09 +0100
commit611069d07c14bf7ace7a75fa2bc9147db8ac097d (patch)
tree03c6f2e57f91bfc945952739c8d47c4d52929bc8 /include/stdlib.h
parente9b6cb7e2eb7029902ae92ef43fb905e5072785b (diff)
Add __diagnose_if annotations3.0
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 38015d4..aeed102 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -39,6 +39,7 @@ extern "C" {
39/* FIXME clang */ 39/* FIXME clang */
40#if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__) 40#if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__)
41#undef realpath 41#undef realpath
42__warning_if(__p == NULL, "'realpath' called with path set to `NULL`; did you invert the arguments?")
42_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) 43_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
43{ 44{
44#ifndef PATH_MAX 45#ifndef PATH_MAX