commit | 1e199363200f33c63160b2fd2730c2f86283ce1e | [log] [tgz] |
---|---|---|
author | Corentin Damman <c.damman@intopix.com> | Fri Feb 17 08:53:55 2023 -0500 |
committer | Corentin Damman <c.damman@intopix.com> | Thu Feb 23 09:19:06 2023 +0100 |
tree | a1fc768e698fd2dd10d6802fedfaaf6e60b106e2 | |
parent | ab049ed7f1efef546ef82d1ec2585a03b47eccce [diff] |
GenerateExportHeader: Fix Clang support on Windows When using Clang with Visual Studio, the GenerateExportHeader function generates the DEPRECATED definition "__attribute__ ((__deprecated__))", because Clang can compile such instruction. However, if a user wants to compile the library with this generated header with MSVC, the declaration is not valid. We suggest to always use the DEPRECATED definition "__declspec(deprecated)" on Windows, which is valid for both Clang and MSVC.