mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 21:22:44 +00:00
add extern "C" to __errno_location's definition if in __cplusplus file
This commit is contained in:
parent
bdcbdb4848
commit
129c8b8081
@ -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())
|
||||
}];
|
||||
|
Loading…
x
Reference in New Issue
Block a user