Skip to content
Snippets Groups Projects
Commit 1e199363 authored by cdammanintopix's avatar cdammanintopix
Browse files

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.
parent ab049ed7
No related branches found
No related tags found
No related merge requests found
Pipeline #320449 waiting for manual action
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment