mkxp-z/tools
刘皓 215046d8b4
Only use extern in embedtool.cpp if language is C++
In C, variables defined as `const` have external linkage.

In C++, variables defined as `const` have internal linkage, and we need
to define them as `extern const` for them to have external linkage like
in C.

However, in C, defining a variable as `extern const` throws a compiler
error, so we need to add `extern` only for C++ files.
2025-05-10 10:47:19 -04:00
..
embedtool.cpp Only use extern in embedtool.cpp if language is C++ 2025-05-10 10:47:19 -04:00
meson.build Move embedtool.cpp into tools directory 2025-04-15 12:20:22 -04:00