summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-07-19 00:05:12 -0700
committerGitHub <noreply@github.com>2024-07-19 00:05:12 -0700
commitbf293360d31e6e4aa40f64d82317de9e5b4edb47 (patch)
treef8dff9524bb198c9fb733c83d53397e602ee7780 /docs
parent335c1a2d0013091e8ecc1691b3521cf22fed3c6c (diff)
Fix LLVM compile error on Windows (#4658)
The following compile error is observed when build with LLVM on Windows: ``` D:/sbf/git/slang/test_wsl/source/slang-glslang/slang-glslang.cpp:39:31: error: static assertion expression is not an integral constant expression 39 | SLANG_COMPILE_TIME_ASSERT(SLANG_OFFSET_OF(TBuiltInResource, limits) > 0); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` To address the problem, SLANG_OFFSET_OF is defined as `offsetof` when `__clang__` is defined. Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions