-
Notifications
You must be signed in to change notification settings - Fork 0
/
stdenv.h
37 lines (28 loc) · 945 Bytes
/
stdenv.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
#ifndef STDENV_H_INCLUDED
#define STDENV_H_INCLUDED
/*
* This include file echoes information about your compiler environment.
* It tries to cover all standardized defines.
* Not usable with Microsoft compilers as they don't support the #warning statement.
*/
#if __STDC_HOSTED__ == 1
#warning "Compiling for a hosted C ennvironment"
#else
#warning "Compiling for a freestanding C ennvironment"
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ < 199409L)
#warning "Compiling C89"
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ == 199409L)
#warning "Compiling C95"
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ == 199901L)
#warning "Compiling C99"
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ == 201112L)
#warning "Compiling C11"
#endif
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ == 201710L)
#warning "Compiling C17"
#endif
#endif // STDENV_H_INCLUDED