Since this is a hit result, I thought I could share a solution as well. I had a project in v5.3.2 a while ago. Recently I’ve been working on v5.4.4 projects for about a year and came back to v5.3.2 for it to show the following error.
error C4668: ‘__has_feature’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’
My solution was to
- Delete
.vsconfig
,ProjectName.sln
files and.vs
folder - right-click project > generate VS project files
- open the
ProjectName.sln
file and look for this prompt
- Click install, and it should show you the required package needs to be installed.
- install it and try compiling again
hopefully someone finds it helpful
Regards,
Wasabi