diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-09-08 17:14:31 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2024-09-08 17:14:31 +0200 |
commit | 4a8f068ba559ceb597fb8b417a08c8fc96088aa4 (patch) | |
tree | 78504ced20db70e1d8bdc975eac9a377eb1ad40f /src/Common/Tcdefs.h | |
parent | 66ce6998b64388cbf08f780a3b4e35f73526221d (diff) | |
download | VeraCrypt-4a8f068ba559ceb597fb8b417a08c8fc96088aa4.tar.gz VeraCrypt-4a8f068ba559ceb597fb8b417a08c8fc96088aa4.zip |
Windows: Add support for x86 and x64 build for driver and binaries using Visual Studio 2019
We also enable Control Flow Guard and Spectre Mitigation
Diffstat (limited to 'src/Common/Tcdefs.h')
-rw-r--r-- | src/Common/Tcdefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h index 9c3f8be7..8e6750a4 100644 --- a/src/Common/Tcdefs.h +++ b/src/Common/Tcdefs.h @@ -108,6 +108,12 @@ typedef unsigned __int64 uint64; #define LL(x) x##ui64 #endif +#if _MSC_VER > 1900 +#define VC_CDECL __cdecl // this is needed because Windows driver on VS2019 uses stdcall for build +#else +#define VC_CDECL +#endif + #pragma warning( disable : 4201 ) // disable: 4201 nonstandard extension used : nameless struct/union #pragma warning( disable : 4324 ) // disable: 4324 structure was padded due to __declspec(align()) |