forked from cirosantilli/cpp-cheat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
37 lines (35 loc) · 1.1 KB
/
common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <fenv.h>
#include <float.h>
#include <inttypes.h> /* PRIxPTR, */
#include <iso646.h>
#include <limits.h> /* *_MAX, *_MIN for integer types */
#include <locale.h>
#include <setjmp.h> /* setjmp, longjmp */
#include <signal.h>
#include <stdbool.h> /* false, true */
#include <stdarg.h> /* ..., va_list, va_start, va_arg, va_end */
#include <stddef.h> /* offsetof, ptrdiff_t, size_t, type_t */
#include <stdlib.h> /* EXIT_SUCCESS, EXIT_FAILURE, malloc, rand, srand */
#include <stdio.h> /* printf, puts */
#include <string.h> /* sprintf, strlen, strcpy, memset, memcmp */
#include <math.h>
#include <time.h> /* time() */
#include <wchar.h>
#if __STDC_VERSION__ >= 199901L
/* Not yet implemented in GCC 5.2. */
/*# include <threads.h>*/
# ifndef __STDC_NO_COMPLEX__
# include <complex.h>
# endif
# if __STDC_VERSION__ >= 201112L
# include <stdnoreturn.h>
# endif
#endif
#define PRIxPTR_WIDTH ((int)(sizeof(void*)*2))
#define GCC_PUSH GCC diagnostic push
/* TODO not working. */
#define GCC_IGNORE(x) GCC diagnostic ignored x
#define GCC_POP GCC diagnostic pop