Skip to content

Commit 3b21a8a

Browse files
committed
ifdef around 'bool' type. hdf5 1.10 defines bool and breaks compiling bp2h5.c
1 parent 8329490 commit 3b21a8a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/bp2h5/bp2h5.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@
4343
#include "dmalloc.h"
4444
#endif
4545

46-
typedef int bool;
47-
#define false 0
48-
#define true 1
46+
#ifndef bool
47+
typedef int bool;
48+
# define false 0
49+
# define true 1
50+
#endif
4951

5052
bool noindex = false; // do no print array indices with data
5153
bool printByteAsChar = false; // print 8 bit integer arrays as string

0 commit comments

Comments
 (0)