diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdbsupport/common-defs.h | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-users/simark/clang-format.zip binutils-users/simark/clang-format.tar.gz binutils-users/simark/clang-format.tar.bz2 |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdbsupport/common-defs.h')
-rw-r--r-- | gdbsupport/common-defs.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index 5e529f6..b359ff8 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -73,16 +73,16 @@ expose the required symbols. NOTE: this must be kept in sync with common.m4. */ -#if defined (__MINGW32__) || defined (__CYGWIN__) -# ifdef _WIN32_WINNT -# if _WIN32_WINNT < 0x0501 -# undef _WIN32_WINNT -# define _WIN32_WINNT 0x0501 -# endif -# else -# define _WIN32_WINNT 0x0501 -# endif -#endif /* __MINGW32__ || __CYGWIN__ */ +#if defined(__MINGW32__) || defined(__CYGWIN__) +#ifdef _WIN32_WINNT +#if _WIN32_WINNT < 0x0501 +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif +#else +#define _WIN32_WINNT 0x0501 +#endif +#endif /* __MINGW32__ || __CYGWIN__ */ #include <stdarg.h> #include <stdio.h> @@ -96,7 +96,7 @@ #include <stdint.h> #include <string.h> #ifdef HAVE_STRINGS_H -#include <strings.h> /* for strcasecmp and strncasecmp */ +#include <strings.h> /* for strcasecmp and strncasecmp */ #endif #include <errno.h> #if HAVE_ALLOCA_H @@ -215,7 +215,9 @@ #include "gdbsupport/poison.h" #define EXTERN_C extern "C" -#define EXTERN_C_PUSH extern "C" { +#define EXTERN_C_PUSH \ + extern "C" \ + { #define EXTERN_C_POP } /* Pull in gdb::unique_xmalloc_ptr. */ @@ -226,7 +228,7 @@ that always returns a pointer to a 4MB section reserved for that. */ -#if defined (HAVE_SBRK) && !__APPLE__ +#if defined(HAVE_SBRK) && !__APPLE__ #define HAVE_USEFUL_SBRK 1 #endif |