File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,9 @@ include(CheckIncludeFile)
178178include (CheckCSourceCompiles)
179179include (CheckCSourceRuns)
180180include (CheckSymbolExists)
181- CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H)
182181CHECK_C_SOURCE_COMPILES(
183182 "int main() { __builtin_expect(0,0); return 0; }"
184183 HAVE___BUILTIN_EXPECT)
185- CHECK_C_SOURCE_COMPILES("
186- int f(void) __attribute__ (());
187- int main() { return 0; }
188- " HAVE___ATTRIBUTE__)
189184
190185CONFIGURE_FILE (
191186 ${CMAKE_CURRENT_SOURCE_DIR} /config.h.in
Original file line number Diff line number Diff line change 55extern "C" {
66#endif
77
8- #cmakedefine HAVE_STDBOOL_H
9-
10- #ifdef HAVE_STDBOOL_H
8+ #if __has_include (< stdbool .h > )
119 #include <stdbool.h>
1210#elif !defined(__cplusplus)
1311 typedef char bool ;
1412#endif
1513
1614#cmakedefine HAVE___BUILTIN_EXPECT
1715
18- #cmakedefine HAVE___ATTRIBUTE__
19-
2016#cmakedefine CMARK_THREADING
2117
22- #ifdef HAVE___ATTRIBUTE__
23- #define CMARK_ATTRIBUTE (list ) __attribute__ (list)
24- #else
25- #define CMARK_ATTRIBUTE (list )
26- #endif
27-
2818#ifndef CMARK_INLINE
2919 #if defined(_MSC_VER ) && !defined(__cplusplus )
3020 #define CMARK_INLINE __inline
Original file line number Diff line number Diff line change 99extern "C" {
1010#endif
1111
12- #define HAVE_STDBOOL_H
13-
14- #ifdef HAVE_STDBOOL_H
12+ #if __has_include (< stdbool .h > )
1513 #include <stdbool.h>
1614#elif !defined(__cplusplus)
1715 typedef char bool ;
1816#endif
1917
2018#define HAVE___BUILTIN_EXPECT
2119
22- #define HAVE___ATTRIBUTE__
23-
2420#define CMARK_THREADING
2521
26- #ifdef HAVE___ATTRIBUTE__
27- #define CMARK_ATTRIBUTE (list ) __attribute__ (list)
28- #else
29- #define CMARK_ATTRIBUTE (list )
30- #endif
31-
3222#ifndef CMARK_INLINE
3323 #if defined(_MSC_VER ) && !defined(__cplusplus )
3424 #define CMARK_INLINE __inline
You can’t perform that action at this time.
0 commit comments