Blender Git Loki

Git Commits -> Revision aadd355

Revision aadd355 by Julian Eisel (master)
June 14, 2021, 17:00 (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: aadd3550289aa0258e9e99864bc6063d0dd03460
Parent Commit: 3de6fe0
Lines Changed: +3, -1

1 Modified Path:

/source/blender/blenlib/BLI_utildefines.h (+3, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021