]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
In NT, write fatal() msg to debugging device
authorGuido van Rossum <guido@python.org>
Tue, 14 Mar 1995 15:01:17 +0000 (15:01 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 Mar 1995 15:01:17 +0000 (15:01 +0000)
Python/pythonrun.c

index e46a526470598866cc938ac44a9a0306948047d8..96f385f9e28a70c27d62f2265f509d84668ee1bf 100644 (file)
@@ -52,6 +52,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <SIOUX.h>
 #endif
 
+#ifdef NT
+#undef BYTE
+#include "windows.h"
+#endif
+
 extern char *getpythonpath();
 
 extern grammar gram; /* From graminit.c */
@@ -562,6 +567,11 @@ fatal(msg)
        fprintf(stderr, "Fatal Python error: %s\n", msg);
 #ifdef macintosh
        for (;;);
+#endif
+#ifdef NT
+       OutputDebugString("Fatal Python error:");
+       OutputDebugString(msg);
+       OutputDebugString("\n");
 #endif
        abort();
 }