diff options
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index b709b40c8..b0f5c607f 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -848,3 +848,16 @@ int wprintf(const wchar_t* fmt, ...) { int wscanf(const wchar_t* fmt, ...) { PRINTF_IMPL(vfwscanf(stdin, fmt, ap)); } + +namespace { + +namespace phony { +#include <bits/struct_file.h> +} + +static_assert(sizeof(::__sFILE) == sizeof(phony::__sFILE), + "size mismatch between `struct __sFILE` implementation and public stub"); +static_assert(alignof(::__sFILE) == alignof(phony::__sFILE), + "alignment mismatch between `struct __sFILE` implementation and public stub"); + +} |