Skip to content

Commit

Permalink
Format config.h.in with Clang-Format and fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosdahl committed Jun 17, 2020
1 parent c43a764 commit 632f3b1
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions cmake/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 632f3b1

Please sign in to comment.