Skip to content

Instantly share code, notes, and snippets.

diff -Naur d/d.h new/d.h
--- d/d.h 2004-09-30 08:03:36.000000000 -0700
+++ new/d.h 2007-08-27 22:07:15.093750000 -0700
@@ -13,21 +13,44 @@
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
-#if !defined(__FreeBSD__) || (__FreeBSD_version >= 500000)
+
+#if defined(_MSC_VER)
--- msvccompiler.py 2007-08-28 23:01:28.843750000 -0700
+++ msvccompiler_patched.py 2007-08-28 23:01:10.078125000 -0700
@@ -240,7 +240,8 @@
# x86
if self.__version >= 7:
self.__root = r"Software\Microsoft\VisualStudio"
- self.__macros = MacroExpander(self.__version)
+ if not (os.environ.has_key("DISTUTILS_USE_SDK") and os.environ.has_key("MSSdk") and self.find_exe("cl.exe")):
+ self.__macros = MacroExpander(self.__version)
else: