diff options
author | Julian Eisel <julian@blender.org> | 2021-04-16 00:45:13 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-06-14 20:00:13 +0300 |
commit | aadd3550289aa0258e9e99864bc6063d0dd03460 (patch) | |
tree | f531edd49f26e8a6000fc2ee7886b684d5096fb7 /source/blender/imbuf/intern | |
parent | 3de6fe0b3eebb2af66db8051fbb65a49e49a8578 (diff) |
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).
Diffstat (limited to 'source/blender/imbuf/intern')
0 files changed, 0 insertions, 0 deletions