Skip to content

Commit d31ba2c

Browse files
committed
Fix C issue
1 parent b0a9ec1 commit d31ba2c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

libdivide.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ namespace libdivide {
153153

154154
#if defined(_MSC_VER) && !defined(__clang__)
155155

156+
// Required for C programming language
157+
#ifndef LIBDIVIDE_CONSTEXPR_INLINE
158+
#define LIBDIVIDE_CONSTEXPR_INLINE LIBDIVIDE_INLINE
159+
#endif
160+
156161
static LIBDIVIDE_CONSTEXPR_INLINE int __builtin_clz(unsigned x) {
157162
#if defined(LIBDIVIDE_VC_CXX20)
158163
if (std::is_constant_evaluated()) {

0 commit comments

Comments
 (0)