summaryrefslogtreecommitdiff
path: root/cmake/config.h.in
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-06-15 21:40:47 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-06-17 09:11:51 +0200
commit632f3b1b8a6d824923a89280ea53548e583dca18 (patch)
tree0b610baae0937e7a17b37c9ebdbb6cd4cf3d4cdb /cmake/config.h.in
parentc43a764a7740425d4dc0f9ad71521bd399e811dc (diff)
downloadccache-632f3b1b8a6d824923a89280ea53548e583dca18.tar.gz
Format config.h.in with Clang-Format and fix spelling
Diffstat (limited to 'cmake/config.h.in')
-rw-r--r--cmake/config.h.in36
1 files changed, 17 insertions, 19 deletions
diff --git a/cmake/config.h.in b/cmake/config.h.in
index b60aee8c..51e897a5 100644
--- a/cmake/config.h.in
+++ b/cmake/config.h.in
@@ -6,47 +6,45 @@
# endif
#endif
-// For example for vasprintf under i686-w64-mingw32-g++-posix.
-// The later defininition of _XOPEN_SOURCE disables certain features
-// on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
+// For example for vasprintf under i686-w64-mingw32-g++-posix. The later
+// definition of _XOPEN_SOURCE disables certain features on Linux, so we need
+// _GNU_SOURCE to re-enable them (makedev, tm_zone).
#define _GNU_SOURCE 1
-// The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-// certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
-// them.
+// The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables certain
+// features on NetBSD, so we need _NETBSD_SOURCE to re-enable them.
#define _NETBSD_SOURCE 1
-// The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-// certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
-// them.
+// The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables certain
+// features on FreeBSD, so we need __BSD_VISIBLE to re-enable them.
#define __BSD_VISIBLE 1
-// The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-// u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
+// The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables u_int on
+// Irix 5.3. Defining _BSD_TYPES brings it back.
#define _BSD_TYPES 1
-// The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
-// certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
-// them.
+// The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables certain
+// features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable them.
#cmakedefine _DARWIN_C_SOURCE
// Define to activate features from IEEE Stds 1003.1-2001.
#define _POSIX_C_SOURCE 200809L
#if defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10)
- #define _XOPEN_SOURCE 500
+# define _XOPEN_SOURCE 500
#elif !defined(__SunOS_5_11) && !defined(__APPLE__)
- #define _XOPEN_SOURCE
+# define _XOPEN_SOURCE
#endif
#if defined(__SunOS_5_10) || defined(__SunOS_5_11)
- #define __EXTENSIONS__ 1
+# define __EXTENSIONS__ 1
#else
- #define _XOPEN_SOURCE_EXTENDED
+# define _XOPEN_SOURCE_EXTENDED
#endif
-
+// clang-format off
#cmakedefine _WIN32_WINNT @_WIN32_WINNT@
+// clang-format on
#ifdef __clang__
# pragma clang diagnostic pop