anchor.diff:  
   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
  +:: /MACHINE:X86 /MACHINE:X64  /MANIFEST:NO
  +set LINK_OPTS=/MACHINE:%ARCH% /OUT:win.xpl /INCREMENTAL:NO /NOLOGO /DLL /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"
  
positive.code: echo -
  echo ----------------------------------------------------
  echo Building CommViewer %GIT_VER%
  echo ARCH=%ARCH% XPLM_LIB=%XPLM_LIB% 
  echo ----------------------------------------------------
  echo -
  echo -
  
  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
  	)
  )
  
  :: Visual Studio 2010
  if defined VS100COMNTOOLS  (
  	if exist "%VS100COMNTOOLS%\vsvars32.bat" (
  		echo -
  		echo - Visual C++ 2010 found.
  		echo -
  		call "%VS100COMNTOOLS%\vsvars32.bat"
  		goto STARTCOMPILING
  	)
  )
  
  
  echo -
  echo - No Visual C++ found, please set the enviroment variable
  echo -
  
negative.code: 
  set ARCH=X64
  set XPLM_LIB="XPLM_64.lib"
  set vs_toolset=x86_amd64
  
  if "%1"=="386" (
  set ARCH=X86
  set vs_toolset=x86
  set XPLM_LIB="XPLM.lib"
  )
  
  