Remove evil constants from cosmopolitan.h

- `I` a.k.a. `_Complex_I` (fixes #705)
- `B0`, `B50`, etc. (fixes #403)
This commit is contained in:
Justine Tunney 2022-12-17 00:39:52 -08:00
parent 3da887c58f
commit 120079b0a6
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
8 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#ifndef COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
#define COSMOPOLITAN_LIBC_CALLS_TTYDEFAULTS_H_
#include "libc/sysv/consts/baud.h"
#include "libc/sysv/consts/baud.internal.h"
#include "libc/sysv/consts/termios.h"
#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY)

View file

@ -1,6 +1,6 @@
#ifndef LIBC_ISYSTEM_COMPLEX_H_
#define LIBC_ISYSTEM_COMPLEX_H_
#include "libc/complex.h"
#include "libc/imag.h"
#include "libc/imag.internal.h"
#include "libc/math.h"
#endif

View file

@ -2,6 +2,6 @@
#define COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_
#include "libc/calls/termios.h"
#include "libc/calls/weirdtypes.h"
#include "libc/sysv/consts/baud.h"
#include "libc/sysv/consts/baud.internal.h"
#include "libc/sysv/consts/termios.h"
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_TERMIOS_H_ */

View file

@ -1,7 +1,7 @@
#ifndef LIBC_ISYSTEM_TGMATH_H_
#define LIBC_ISYSTEM_TGMATH_H_
#include "libc/complex.h"
#include "libc/imag.h"
#include "libc/imag.internal.h"
#include "libc/math.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
#if __STDC_VERSION__ + 0 >= 201112

View file

@ -9,7 +9,7 @@
#include "libc/calls/ttydefaults.h"
#include "libc/calls/weirdtypes.h"
#include "libc/dce.h"
#include "libc/sysv/consts/baud.h"
#include "libc/sysv/consts/baud.internal.h"
#include "libc/sysv/consts/fio.h"
#include "libc/sysv/consts/modem.h"
#include "libc/sysv/consts/pty.h"

View file

@ -134,7 +134,7 @@
# ifdef HAVE_TERMIOS_H
#include "libc/calls/termios.h"
#include "libc/calls/weirdtypes.h"
#include "libc/sysv/consts/baud.h"
#include "libc/sysv/consts/baud.internal.h"
#include "libc/sysv/consts/termios.h"
# define sgttyb termios
# define sg_flags c_lflag