Skip to content

Commit 25d6090

Browse files
author
Luca Sonntag
committed
Fix ARM64 build error C3861: '_CountOneBits64' not found in winnt.h
The AppVeyor 'Visual Studio 2019' image update introduced Windows SDK 10.0.26100.0, which contains a bug in winnt.h where _CountOneBits64 is called without the required intrinsics being defined for the ARM64 v142 toolchain. Including <intrin.h> in the precompiled headers (Stdafx.h) ensures the necessary intrinsic definitions are available during compilation.
1 parent 703a925 commit 25d6090

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CefSharp.BrowserSubprocess.Core/Stdafx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#pragma once
66

7+
#include <intrin.h>
8+
79
#ifdef EXPORT
810
#define DECL __declspec(dllexport)
911
#else

CefSharp.Core.Runtime/Stdafx.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#pragma once
66

7+
#include <intrin.h>
8+
79
#ifdef EXPORT
810
#define DECL __declspec(dllexport)
911
#else

0 commit comments

Comments
 (0)