Skip to content

Commit bfeb838

Browse files
use CMake-generated config.h if available
1 parent 76d8399 commit bfeb838

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/include/cmark-gfm_config.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#if __has_include("config.h")
2+
#include "config.h"
3+
#else
4+
15
#ifndef CMARK_CONFIG_H
26
#define CMARK_CONFIG_H
37

@@ -75,4 +79,6 @@ CMARK_INLINE int c99_snprintf(char *outBuf, size_t size, const char *format, ...
7579
}
7680
#endif
7781

78-
#endif
82+
#endif /* CMARK_CONFIG_H */
83+
84+
#endif /* config.h */

0 commit comments

Comments
 (0)