Skip to content

Commit a8fa412

Browse files
Closes #585
Adds `#include <stdbool.h>` conditionally for C compilers. Then the cython generate C source file can be compiled using gcc 9.3 as follows: ``` gcc -fmax-errors=1 a.c -fPIC -I$(python -c "import dpctl; print(dpctl.get_include())") -I$(python3-config --includes) $(pyt hon3-config --ldflags) -fno-lto -shared -oa$(python3-config --extension-suffix) ```
1 parent 30e3cc6 commit a8fa412

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl-capi/include/dpctl_data_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#include <inttypes.h>
3838
#include <stdint.h>
3939

40+
#ifndef __cplusplus
41+
#include <stdbool.h>
42+
#endif
43+
4044
#ifndef _MSC_VER
4145

4246
#if !defined(UINT32_MAX)

0 commit comments

Comments
 (0)