Skip to content

Commit 05c0534

Browse files
committed
try to fix issue with <PlatformToolset>v141_xp and older WindowsTargetPlatformVersion before win 10
c:\projects\pythonscript\nppplugin\include\dpimanagerv2.h(57): error C2065: 'DPI_AWARENESS_CONTEXT': undeclared identifier (compiling source file ..\src\dpiManagerV2.cpp) [C:\projects\pythonscript\NppPlugin\project\NppPlugin.vcxproj]
1 parent 6357cb4 commit 05c0534

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

NppPlugin/include/dpiManagerV2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
#define USER_DEFAULT_SCREEN_DPI 96
3939
#endif
4040

41+
#ifndef DPI_AWARENESS_CONTEXT
42+
#define DPI_AWARENESS_CONTEXT HANDLE
43+
#endif
44+
4145
class DPIManagerV2
4246
{
4347
public:

0 commit comments

Comments
 (0)