anchor.diff:  echo -
   echo ----------------------------------------------------
   echo Building CommViewer %GIT_VER%
  -echo ARCH=%ARCH% XPLM_LIB=%XPLM_LIB% 
  +echo ARCH=%ARCH% XPLM_LIB=%XPLM_LIB%
   echo ----------------------------------------------------
   echo -
   echo -
   
  +:: Visual Studio 2013
  +:vc-set-2013
  +if not defined VS120COMNTOOLS  goto vc-set-2012
  +if not exist "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" goto vc-set-2012
  +echo -
  +echo - Visual C++ 2013 found.
  +echo -
  +call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset%
   goto STARTCOMPILING
  +
   :: Visual Studio 2012
  -if defined VS120COMNTOOLS  (
  -	if exist "%VS120COMNTOOLS%\vsvars32.bat" (
  -		echo -
  -		echo - Visual C++ 2012 found.
  -		echo -
  -		call "%VS120COMNTOOLS%\..\..\VC\vsvarsall.bat" x86_amd64
  -		goto STARTCOMPILING
  -	)
  -)
  +:vc-set-2012
  +if not defined VS110COMNTOOLS  goto vc-set-notfound
  +if not exist "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" vc-set-notfound
  +echo -
  +echo - Visual C++ 2011 found.
  +echo -
  +call "%VS110COMNTOOLS%\..\..\vc\vcvarsall.bat" %vs_toolset%
  +goto STARTCOMPILING
   
  -:: Visual Studio 2010
  -if defined VS100COMNTOOLS  (
  -	if exist "%VS100COMNTOOLS%\vsvars32.bat" (
  -		echo -
  -		echo - Visual C++ 2010 found.
  -		echo -
  -		call "%VS100COMNTOOLS%\vsvars32.bat"
  -		goto STARTCOMPILING
  -	)
  -)
  -
  -
  +:vc-set-notfound
   echo -
   echo - No Visual C++ found, please set the enviroment variable
   echo -
  
positive.code: 
  set CL_FILES="commviewer_win.cpp" /TP "commviewer.cpp"
  
  :: /MACHINE:X86 /MACHINE:X64
  set LINK_OPTS=/MACHINE:%ARCH% /OUT:win.xpl /INCREMENTAL:NO /NOLOGO /DLL /MANIFEST:NO /NXCOMPAT /DYNAMICBASE /SUBSYSTEM:CONSOLE /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /LIBPATH:"SDK\Libraries\Win" /TLBID:1
  
  :: "XPLM_64.lib" "XPLM.lib"
  set LINK_LIBS=%XPLM_LIB% "user32.lib" "Opengl32.lib" "odbc32.lib" "odbccp32.lib" "kernel32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib"
  
negative.code: :STARTCOMPILING
  
  :: buid process
  
  set CL_OPTS=/c /GS /W3 /Gy /Zc:wchar_t /Zi /Gm- /O2 /Ob1 /fp:precise /GF /WX- /Zc:forScope /Gd /MT /EHsc /nologo
  
  