mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-26 17:51:02 +00:00
Make libspirv.h more C friendly.
In C, `#include <stdbool.h>` so `bool` is recognized. Add a `typedef` for `spv_context_t`.
This commit is contained in:
parent
2923806314
commit
c31a31942b
@ -33,6 +33,8 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#else
|
||||
#include <stdbool.h>
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
@ -331,7 +333,7 @@ typedef struct spv_diagnostic_t {
|
||||
|
||||
// Opaque struct containing the context used to operate on a SPIR-V module.
|
||||
// Its object is used by various translation API functions.
|
||||
struct spv_context_t;
|
||||
typedef struct spv_context_t spv_context_t;
|
||||
|
||||
// Type Definitions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user