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:
Dejan Mircevski 2016-03-01 10:17:18 -05:00
parent 2923806314
commit c31a31942b

View File

@ -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