KCC - Kayte C Compiler 1.10.0
A C compiler implementation with preprocessor, lexer, parser, and code generator
Loading...
Searching...
No Matches
common_includes.h
1#ifndef COMMON_INCLUDES_H
2#define COMMON_INCLUDES_H
3
4// Ensure we have GNU extensions available
5#ifndef _GNU_SOURCE
6#define _GNU_SOURCE
7#endif
8
9// Standard C library includes
10#include <stdio.h>
11#include <stdlib.h>
12#include <string.h>
13#include <stdbool.h>
14#include <stdarg.h>
15#include <stdint.h>
16#include <ctype.h>
17#include <errno.h>
18#include <assert.h>
19
20// POSIX includes
21#include <unistd.h>
22
23// Ensure stderr, stdin, stdout are available
24#ifndef stderr
25extern FILE *stderr;
26#endif
27#ifndef stdout
28extern FILE *stdout;
29#endif
30#ifndef stdin
31extern FILE *stdin;
32#endif
33
34#endif // COMMON_INCLUDES_H