Restore strict header checking

This commit is contained in:
Justine Tunney 2022-08-13 16:02:01 -07:00
parent b212f49ef4
commit ad775a75b8
16 changed files with 43 additions and 41 deletions

View file

@ -1,9 +1,7 @@
#ifndef LIBC_ISYSTEM_TGMATH_H_
#define LIBC_ISYSTEM_TGMATH_H_
#include "libc/complex.h"
#include "libc/math.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#if __STDC_VERSION__ + 0 >= 201112
COSMOPOLITAN_C_START_
@ -306,12 +304,14 @@ COSMOPOLITAN_C_START_
: conj, complex long double \
: conjl)(x)
#undef creal
#define creal(x) \
_Generic((x), complex float \
: crealf, complex default \
: creal, complex long double \
: creall)(x)
#undef cimag
#define cimag(x) \
_Generic((x), complex float \
: cimagf, complex default \
@ -328,5 +328,4 @@ COSMOPOLITAN_C_END_
#endif /* C11 */
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#endif
#endif /* LIBC_ISYSTEM_TGMATH_H_ */

View file

@ -1,10 +1,7 @@
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_WINTERNL_H_
#define COSMOPOLITAN_LIBC_ISYSTEM_WINTERNL_H_
#include <Windows.h>
#include "libc/nt/struct/ldr.h"
#include "libc/nt/ntdll.h"
#include "libc/nt/struct/ldr.h"
#include "libc/nt/struct/peb.h"
#include "libc/nt/struct/teb.h"
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_WINTERNL_H_ */

View file

@ -15,8 +15,6 @@ COSMOPOLITAN_C_START_
#define ntohl(u32) bswap_32(u32)
#define IFHWADDRLEN 6
#define IF_NAMESIZE 16
#define IFNAMSIZ IF_NAMESIZE
const char *inet_ntop(int, const void *, char *, uint32_t);
int inet_pton(int, const char *, void *);

View file

@ -4,6 +4,9 @@
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
#define IF_NAMESIZE 16
#define IFNAMSIZ IF_NAMESIZE
struct ifreq {
union {
char ifrn_name[IFNAMSIZ]; /* Interface name, e.g. "en0". */

View file

@ -1,5 +1,6 @@
#ifndef COSMOPOLITAN_LIBC_SOCK_STRUCT_MSGHDR_INTERNAL_H_
#define COSMOPOLITAN_LIBC_SOCK_STRUCT_MSGHDR_INTERNAL_H_
#include "libc/sock/struct/msghdr.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_