diff --git a/NTMakefile b/NTMakefile index a0bc3d79..18fbbda7 100644 --- a/NTMakefile +++ b/NTMakefile @@ -1,7 +1,7 @@ CC = cl /TC /c /nologo LD = link /nologo -!if [where /R "%DXSDK_DIR%\\Include" d3d9.h >nul 2>nul] +!if [where /R "%DXSDK_DIR%\\Include" /Q d3d9.h] == 0 !if [echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%DXSDK_DIR%\\Include">d3d9flags.mk] !endif !else diff --git a/tools/genmk.pl b/tools/genmk.pl index b7993e39..bc97e84c 100755 --- a/tools/genmk.pl +++ b/tools/genmk.pl @@ -44,7 +44,7 @@ sub cobjs { sub d3d9_detect_block { return <<'EOF'; -!if [where /R "%DXSDK_DIR%\\Include" d3d9.h >nul 2>nul] +!if [where /R "%DXSDK_DIR%\\Include" /Q d3d9.h] == 0 !if [echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%DXSDK_DIR%\\Include">d3d9flags.mk] !endif !else