Skip to content

Commit 338828b

Browse files
Define CYTHON_EXTERN_C before including Cython-generated headers
Added ``` ``` to quieten mightly flood of warnings.
1 parent 86e845f commit 338828b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpctl/apis/include/dpctl_capi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
// Ordering of includes is important here. dpctl_sycl_types defines types
2929
// used by dpctl's Python C-API headers.
3030
#include "syclinterface/dpctl_sycl_types.h"
31+
#define CYTHON_EXTERN_C extern "C"
3132
#include "../_sycl_device.h"
3233
#include "../_sycl_device_api.h"
3334
#include "../_sycl_context.h"

0 commit comments

Comments
 (0)