Compilation environment:
- Microsoft Visual Studio Community 2019 Version 16.6.2
- The source code is the master branch(commit 2e5d972f369cf80494059cc4d15dfcd22e4bddcc)
I'm compiling the project with undefined PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY and PROCESS_MITIGATION_POLICY_INFORMATION errors.
The detailed errors are as follows:
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file apiimport.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file apiimport.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file apiimport.c)
How can I solve this? Thanks for the advice.