mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
LibC: Don't #define away __{BEGIN,END}_DECLS in stdarg.h
That would force anything that includes this to have language-specific linkage, and absolutely break `sys/cdefs.h`. Fixes #5452.
This commit is contained in:
parent
255da9b02b
commit
43948aee51
Notes:
sideshowbarker
2024-07-18 22:02:27 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/43948aee51f Pull-request: https://github.com/SerenityOS/serenity/pull/5455 Issue: https://github.com/SerenityOS/serenity/issues/5452
@ -26,19 +26,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(KERNEL)
|
||||
# define __BEGIN_DECLS
|
||||
# define __END_DECLS
|
||||
#else
|
||||
# include <sys/cdefs.h>
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
typedef __builtin_va_list va_list;
|
||||
|
||||
#define va_start(v, l) __builtin_va_start(v, l)
|
||||
#define va_end(v) __builtin_va_end(v)
|
||||
#define va_arg(v, l) __builtin_va_arg(v, l)
|
||||
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user