Skip to content

Commit 2a8217d

Browse files
authored
Merge pull request #580 from ppisar/c23
Fix building in ISO C23
2 parents 5e4ff54 + 5d36ad3 commit 2a8217d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bindings/solv.i

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,10 @@ SWIG_AsValDepId(void *obj, int *val) {
976976

977977
/* argh, swig undefs bool for perl */
978978
#ifndef bool
979+
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 202311L
979980
typedef int bool;
980981
#endif
982+
#endif
981983

982984
#include "pool.h"
983985
#include "poolarch.h"

0 commit comments

Comments
 (0)