diff options
| author | Daniel Kolesa | 2022-10-26 00:30:00 +0200 |
|---|---|---|
| committer | jvoisin | 2025-10-31 22:16:21 +0100 |
| commit | f46714c2f9eb13c12c8218f1b7c045182041fdc9 (patch) | |
| tree | b1285c57cd600790ce86890927504e59f1cbd7d7 /include/stdlib.h | |
| parent | 8915dc13de44fed3a076a9fd51eb1ab2b5502d7b (diff) | |
add initial clang support
Co-Authored-By: jvoisin <julien.voisin@dustri.org>
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index bc93b60..38015d4 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2015-2016 Dimitris Papastamos <sin@2f30.org> | 2 | * Copyright (C) 2015-2016 Dimitris Papastamos <sin@2f30.org> |
| 3 | * Copyright (C) 2022 q66 <q66@chimera-linux.org> | ||
| 3 | * | 4 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for any | 5 | * Permission to use, copy, modify, and/or distribute this software for any |
| 5 | * purpose with or without fee is hereby granted. | 6 | * purpose with or without fee is hereby granted. |
| @@ -35,7 +36,8 @@ __extension__ | |||
| 35 | extern "C" { | 36 | extern "C" { |
| 36 | #endif | 37 | #endif |
| 37 | 38 | ||
| 38 | #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) | 39 | /* FIXME clang */ |
| 40 | #if (defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)) && !defined(__clang__) | ||
| 39 | #undef realpath | 41 | #undef realpath |
| 40 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) | 42 | _FORTIFY_FN(realpath) char *realpath(const char *__p, char *__r) |
| 41 | { | 43 | { |
