We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsglue
offsetof
1 parent 0081fc4 commit faeeb8fCopy full SHA for faeeb8f
mozjs-sys/build.rs
@@ -781,7 +781,12 @@ mod jsglue {
781
.clang_args(["-include", &confdefs_path.to_str().expect("UTF-8")]);
782
783
if msvc {
784
- builder = builder.clang_args(["-fms-compatibility", "-DWIN32", "-std=c++17"])
+ builder = builder.clang_args([
785
+ "-fms-compatibility",
786
+ "-DWIN32",
787
+ "-D_CRT_USE_BUILTIN_OFFSETOF",
788
+ "-std=c++17",
789
+ ])
790
} else {
791
builder = builder.clang_args(["-fPIC", "-fno-rtti", "-std=c++17"])
792
}
0 commit comments