Skip to content

Commit 7d02b91

Browse files
committed
Prefer use of uppercase Emscripten version macros
Available since Emscripten 5.0.1, see commit: emscripten-core/emscripten@4cce5e9
1 parent c657a27 commit 7d02b91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vips-emscripten.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ EMSCRIPTEN_BINDINGS(my_module) {
434434
return std::string(VIPS_VERSION);
435435
}));
436436
function("emscriptenVersion", optional_override([]() {
437-
std::string major = std::to_string(__EMSCRIPTEN_major__);
438-
std::string minor = std::to_string(__EMSCRIPTEN_minor__);
439-
std::string patch = std::to_string(__EMSCRIPTEN_tiny__);
437+
std::string major = std::to_string(__EMSCRIPTEN_MAJOR__);
438+
std::string minor = std::to_string(__EMSCRIPTEN_MINOR__);
439+
std::string patch = std::to_string(__EMSCRIPTEN_TINY__);
440440

441441
return major + "." + minor + "." + patch;
442442
}));

0 commit comments

Comments
 (0)