From f9e4d82fbf208c72c6218723b93e0ee25efdc456 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Thu, 8 Jul 1999 18:42:05 -0700
Subject: [PATCH] damn CL.EXE doesn't define __STDC__ by default :(

Rev: NT/tools/rntcl:1.2
---
 NT/tools/rntcl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/NT/tools/rntcl b/NT/tools/rntcl
index a930d8ef30..d94f5427f3 100755
--- a/NT/tools/rntcl
+++ b/NT/tools/rntcl
@@ -47,6 +47,7 @@ int main(int argc, string *argv)
     "-D__WIN32__",
     "-D_WIN32",
     "-D__NT__",
+    "-D__STDC__",
     "-nologo",
   });
 
@@ -196,10 +197,9 @@ int main(int argc, string *argv)
       break;
 
     case "obj":
-      if(output)
-	cflags+=({"-Fo"+fixpath(output)});
-      else
-	output=remove_ext(argv[1])+".obj";
+      if(!output)
+	output=remove_ext(argv[1])+".o";
+      cflags+=({"-Fo"+fixpath(output)});
       wantfile=output;
       break;
 
-- 
GitLab