Blender Git Loki
Git Commits -> Revision dc5304a
Revision dc5304a by Julian Eisel (soc-2021-curves) June 21, 2021, 14:31 (GMT) |
Fix possible C-linkage warning on Clang The warning would appear when using the `ENUM_OPERATORS()` macro inside of an `extern "C"` block. Didn't cause a warning in master currently, but in the `asset-browser-poselib` branch. After macro expansion, there would be C++ code in code with C linkage (`extern "C"`). So make sure the expanded C++ code always uses C++ linkage. The syntax used is totally C++ compliant: the C++ standard requires that in such nested linkage specifications, the innermost one determines the linking language (e.g. see https://timsong-cpp.github.io/cppwp/n4659/dcl.link#4). |
Commit Details:
Full Hash: dc5304a7267c6ea656f38ac3691946700dfb6883
Parent Commit: d3921f6
Committed By: Dilith Jayakody
Lines Changed: +3, -1
1 Modified Path:
/source/blender/blenlib/BLI_utildefines.h (+3, -1) (Diff)