Skip to content

Commit c658a66

Browse files
committed
sigc++config.h.* Format with clang-format (clang-format-10)
So the generated sigc++config.h will have the correct formatting.
1 parent 8aea937 commit c658a66

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

sigc++config.h.in

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313

1414
/* Detect Win32 platform */
1515
#ifdef _WIN32
16-
# if defined(_MSC_VER)
17-
# define SIGC_MSC 1
18-
# define SIGC_WIN32 1
19-
# define SIGC_DLL 1
20-
# elif defined(__CYGWIN__)
21-
# define SIGC_CONFIGURE 1
22-
# elif defined(__MINGW32__)
23-
# define SIGC_WIN32 1
24-
# define SIGC_CONFIGURE 1
25-
# else
26-
# error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
27-
# endif
16+
#if defined(_MSC_VER)
17+
#define SIGC_MSC 1
18+
#define SIGC_WIN32 1
19+
#define SIGC_DLL 1
20+
#elif defined(__CYGWIN__)
21+
#define SIGC_CONFIGURE 1
22+
#elif defined(__MINGW32__)
23+
#define SIGC_WIN32 1
24+
#define SIGC_CONFIGURE 1
25+
#else
26+
#error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
27+
#endif
2828
#else /* !_WIN32 */
29-
# define SIGC_CONFIGURE 1
29+
#define SIGC_CONFIGURE 1
3030
#endif /* !_WIN32 */
3131

3232
#ifdef SIGC_MSC
@@ -42,9 +42,9 @@
4242
* seems to have no adverse effects, so that seems like a good enough
4343
* solution for now.
4444
*/
45-
# pragma warning(disable:4251)
45+
#pragma warning(disable : 4251)
4646

47-
#if (_MSC_VER < 1900) && !defined (noexcept)
47+
#if (_MSC_VER < 1900) && !defined(noexcept)
4848
#define _ALLOW_KEYWORD_MACROS 1
4949
#define noexcept _NOEXCEPT
5050
#endif
@@ -54,13 +54,13 @@
5454
#endif /* !SIGC_MSC */
5555

5656
#ifdef SIGC_DLL
57-
# if defined(SIGC_BUILD) && defined(_WINDLL)
58-
# define SIGC_API __declspec(dllexport)
59-
# elif !defined(SIGC_BUILD)
60-
# define SIGC_API __declspec(dllimport)
61-
# else
62-
# define SIGC_API
63-
# endif
57+
#if defined(SIGC_BUILD) && defined(_WINDLL)
58+
#define SIGC_API __declspec(dllexport)
59+
#elif !defined(SIGC_BUILD)
60+
#define SIGC_API __declspec(dllimport)
61+
#else
62+
#define SIGC_API
63+
#endif
6464
#else /* !SIGC_DLL */
65-
# define SIGC_API
65+
#define SIGC_API
6666
#endif /* !SIGC_DLL */

sigc++config.h.meson

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616

1717
/* Detect Win32 platform */
1818
#ifdef _WIN32
19-
# if defined(_MSC_VER)
20-
# define SIGC_MSC 1
21-
# define SIGC_WIN32 1
22-
# define SIGC_DLL 1
23-
# elif defined(__CYGWIN__)
24-
# define SIGC_CONFIGURE 1
25-
# elif defined(__MINGW32__)
26-
# define SIGC_WIN32 1
27-
# define SIGC_CONFIGURE 1
28-
# else
29-
# error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
30-
# endif
19+
#if defined(_MSC_VER)
20+
#define SIGC_MSC 1
21+
#define SIGC_WIN32 1
22+
#define SIGC_DLL 1
23+
#elif defined(__CYGWIN__)
24+
#define SIGC_CONFIGURE 1
25+
#elif defined(__MINGW32__)
26+
#define SIGC_WIN32 1
27+
#define SIGC_CONFIGURE 1
28+
#else
29+
#error "libsigc++ config: Unknown win32 architecture (send me gcc --dumpspecs or equiv)"
30+
#endif
3131
#else /* !_WIN32 */
32-
# define SIGC_CONFIGURE 1
32+
#define SIGC_CONFIGURE 1
3333
#endif /* !_WIN32 */
3434

3535
#ifdef SIGC_MSC
@@ -45,9 +45,9 @@
4545
* seems to have no adverse effects, so that seems like a good enough
4646
* solution for now.
4747
*/
48-
# pragma warning(disable:4251)
48+
#pragma warning(disable : 4251)
4949

50-
#if (_MSC_VER < 1900) && !defined (noexcept)
50+
#if (_MSC_VER < 1900) && !defined(noexcept)
5151
#define _ALLOW_KEYWORD_MACROS 1
5252
#define noexcept _NOEXCEPT
5353
#endif
@@ -57,15 +57,15 @@
5757
#endif /* !SIGC_MSC */
5858

5959
#ifdef SIGC_DLL
60-
# if defined(SIGC_BUILD) && defined(_WINDLL)
61-
# define SIGC_API __declspec(dllexport)
62-
# elif !defined(SIGC_BUILD)
63-
# define SIGC_API __declspec(dllimport)
64-
# else
65-
# define SIGC_API
66-
# endif
60+
#if defined(SIGC_BUILD) && defined(_WINDLL)
61+
#define SIGC_API __declspec(dllexport)
62+
#elif !defined(SIGC_BUILD)
63+
#define SIGC_API __declspec(dllimport)
64+
#else
65+
#define SIGC_API
66+
#endif
6767
#else /* !SIGC_DLL */
68-
# define SIGC_API
68+
#define SIGC_API
6969
#endif /* !SIGC_DLL */
7070

7171
#endif /* !SIGCXXCONFIG_H_INCLUDED */

0 commit comments

Comments
 (0)