Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: fusl/include/features.h

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #ifndef _FEATURES_H 1 #ifndef _FEATURES_H
2 #define _FEATURES_H 2 #define _FEATURES_H
3 3
4 #if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE) 4 #if defined(_ALL_SOURCE) && !defined(_GNU_SOURCE)
5 #define _GNU_SOURCE 1 5 #define _GNU_SOURCE 1
6 #endif 6 #endif
7 7
8 #if defined(_DEFAULT_SOURCE) && !defined(_BSD_SOURCE) 8 #if defined(_DEFAULT_SOURCE) && !defined(_BSD_SOURCE)
9 #define _BSD_SOURCE 1 9 #define _BSD_SOURCE 1
10 #endif 10 #endif
11 11
12 #if !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) \ 12 #if !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) && \
13 && !defined(_XOPEN_SOURCE) && !defined(_GNU_SOURCE) \ 13 !defined(_XOPEN_SOURCE) && !defined(_GNU_SOURCE) && \
14 && !defined(_BSD_SOURCE) && !defined(__STRICT_ANSI__) 14 !defined(_BSD_SOURCE) && !defined(__STRICT_ANSI__)
15 #define _BSD_SOURCE 1 15 #define _BSD_SOURCE 1
16 #define _XOPEN_SOURCE 700 16 #define _XOPEN_SOURCE 700
17 #endif 17 #endif
18 18
19 #if __STDC_VERSION__ >= 199901L 19 #if __STDC_VERSION__ >= 199901L
20 #define __restrict restrict 20 #define __restrict restrict
21 #elif !defined(__GNUC__) 21 #elif !defined(__GNUC__)
22 #define __restrict 22 #define __restrict
23 #endif 23 #endif
24 24
25 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus) 25 #if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
26 #define __inline inline 26 #define __inline inline
27 #endif 27 #endif
28 28
29 #if __STDC_VERSION__ >= 201112L 29 #if __STDC_VERSION__ >= 201112L
30 #elif defined(__GNUC__) 30 #elif defined(__GNUC__)
31 #define _Noreturn __attribute__((__noreturn__)) 31 #define _Noreturn __attribute__((__noreturn__))
32 #else 32 #else
33 #define _Noreturn 33 #define _Noreturn
34 #endif 34 #endif
35 35
36 #endif 36 #endif
OLDNEW
« fusl/arch/aarch64/atomic_arch.h ('K') | « fusl/include/fcntl.h ('k') | fusl/include/fenv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698