Fix ODR violations
On a shared build, these symbols exist in both libglslang.so and libSPIRV.so, leading to an ODR violation at runtime.
This commit is contained in:
parent
f1cb8608b3
commit
adfcaba7ae
6 changed files with 15 additions and 21 deletions
|
|
@ -378,8 +378,6 @@ namespace {
|
|||
int op_cmpl(int a) { return ~a; }
|
||||
int op_not(int a) { return !a; }
|
||||
|
||||
};
|
||||
|
||||
struct TBinop {
|
||||
int token, precedence, (*op)(int, int);
|
||||
} binop[] = {
|
||||
|
|
@ -412,6 +410,8 @@ struct TUnop {
|
|||
{ '!', op_not },
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
#define NUM_ELEMENTS(A) (sizeof(A) / sizeof(A[0]))
|
||||
|
||||
int TPpContext::eval(int token, int precedence, bool shortCircuit, int& res, bool& err, TPpToken* ppToken)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue