Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d30159d

Browse files
committedDec 12, 2019
Portability workaround for wasi/api.h errno constants
Uses UINT16_C for backing of errno constants (EPERM etc) as in previous versions, rather than casting them to __wasm_errno_t. This fixes some portable codebases that use the C preprocessor to compare the constant values like this: ``` #if EPERM > 0 #define DAV1D_ERR(e) (-(e)) #else #define DAV1D_ERR(e) (e) #endif ``` Adds a test case to catch regressions. Fixes #9996
1 parent e92546b commit d30159d

File tree

2 files changed

+94
-81
lines changed

2 files changed

+94
-81
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.