File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1843,6 +1843,9 @@ typedef enum SpvOp_ {
1843
1843
} SpvOp ;
1844
1844
1845
1845
#ifdef SPV_ENABLE_UTILITY_CODE
1846
+ #if !defined(__cplusplus ) && !defined(bool )
1847
+ # include <stdbool.h>
1848
+ #endif
1846
1849
inline void SpvHasResultAndType (SpvOp opcode , bool * hasResult , bool * hasResultType ) {
1847
1850
* hasResult = * hasResultType = false;
1848
1851
switch (opcode ) {
Original file line number Diff line number Diff line change @@ -1839,6 +1839,9 @@ enum Op {
1839
1839
};
1840
1840
1841
1841
#ifdef SPV_ENABLE_UTILITY_CODE
1842
+ #if !defined(__cplusplus) && !defined(bool)
1843
+ # include < stdbool.h>
1844
+ #endif
1842
1845
inline void HasResultAndType (Op opcode, bool *hasResult, bool *hasResultType) {
1843
1846
*hasResult = *hasResultType = false ;
1844
1847
switch (opcode) {
Original file line number Diff line number Diff line change @@ -1839,6 +1839,9 @@ enum class Op : unsigned {
1839
1839
};
1840
1840
1841
1841
#ifdef SPV_ENABLE_UTILITY_CODE
1842
+ #if !defined(__cplusplus) && !defined(bool)
1843
+ # include <stdbool.h>
1844
+ #endif
1842
1845
inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
1843
1846
*hasResult = *hasResultType = false;
1844
1847
switch (opcode) {
You can’t perform that action at this time.
0 commit comments