We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including libspirv.h in a C project causes an error at this line : https://github.com/KhronosGroup/SPIRV-Tools/blob/master/include/spirv-tools/libspirv.h#L344 because spv_context_t isn't a known type, but struct spv_context_t is.
libspirv.h
spv_context_t
struct spv_context_t
Since libspirv is intended as a C API, this should be fixed by adding typedef struct spv_context_t spv_context_t; just here : https://github.com/KhronosGroup/SPIRV-Tools/blob/master/include/spirv-tools/libspirv.h#L334
typedef struct spv_context_t spv_context_t;
The text was updated successfully, but these errors were encountered:
Will fix, but libspirv.h is currently far from being C friendly. It has several other non-C constructs, such as bool and namespace in OpenCL.std.h.
bool
namespace
OpenCL.std.h
Sorry, something went wrong.
Fixed via c31a319.
No branches or pull requests
Including
libspirv.h
in a C project causes an error at this line :https://github.com/KhronosGroup/SPIRV-Tools/blob/master/include/spirv-tools/libspirv.h#L344
because
spv_context_t
isn't a known type, butstruct spv_context_t
is.Since libspirv is intended as a C API, this should be fixed by adding
typedef struct spv_context_t spv_context_t;
just here :https://github.com/KhronosGroup/SPIRV-Tools/blob/master/include/spirv-tools/libspirv.h#L334
The text was updated successfully, but these errors were encountered: