projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdcbdb4
)
add extern "C" to __errno_location's definition if in __cplusplus file
author
Alex Brachet
<alexbrachetmialot@gmail.com>
Mon, 9 Mar 2020 07:10:59 +0000
(
03:10
-0400)
committer
Alex Brachet
<alexbrachetmialot@gmail.com>
Mon, 9 Mar 2020 07:10:59 +0000
(
03:10
-0400)
libc/config/linux/api.td
patch
|
blob
|
history
diff --git
a/libc/config/linux/api.td
b/libc/config/linux/api.td
index
1c9fa8a
..
673521f
100644
(file)
--- a/
libc/config/linux/api.td
+++ b/
libc/config/linux/api.td
@@
-27,6
+27,9
@@
def NullMacro : MacroDef<"NULL"> {
def ErrnoMacro : MacroDef<"errno"> {
let Defn = [{
+ #ifdef __cplusplus
+ extern "C"
+ #endif
int *__errno_location();
#define errno (*__errno_location())
}];