summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorjvoisin2025-12-30 11:33:08 +0100
committerJulien Voisin2025-12-30 11:34:48 +0100
commiteec2b5e06bdb01d20f1a1125074a379e0b154d80 (patch)
treefaf6d8ef8a04967044c31ac2c7b600ef8ce9a7ec /include/stdlib.h
parentc4c5fd41124f38a5afee02b8f604ddc21d3b199a (diff)
Change __warning_if into __fortify_warning_if to fix potential conflicts3.0.1
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index aeed102..0336d56 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -39,7 +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_warning_if(__p == NULL, "'realpath' called with path set to `NULL`; did you invert the arguments?")
43_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) 43_FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r)
44{ 44{
45#ifndef PATH_MAX 45#ifndef PATH_MAX