lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev minor patch (use _WIN_CC with DJGPP)


From: Leonid Pauzner
Subject: lynx-dev minor patch (use _WIN_CC with DJGPP)
Date: Wed, 25 Aug 1999 22:28:37 +0400 (MSD)

* Tweak xsystem.c (extern system_is_NT now ifdef'ed with WIN_EX) so
  exec_command() can also be used with DJGPP when compiled with _WIN_CC symbol.



BTW,
    #define _WIN_CC=    .... for Windows C Compiler
now used for exec_command() only - a better name may be a good idea.



diff -u old/xsystem.c ./xsystem.c
--- old/xsystem.c       Mon Aug  2 01:22:28 1999
+++ ./xsystem.c Wed Aug  4 15:24:16 1999
@@ -103,7 +103,9 @@
 static int NEAR
 is_builtin_command(char *s)
 {
+#ifdef WIN_EX
     extern int system_is_NT;   /* 1997/11/05 (Wed) 22:10:35 */
+#endif

     static char *cmdtab[]=
     {
@@ -118,8 +120,11 @@

     l = strlen(s);
     count = sizeof(cmdtab) / sizeof(cmdtab[0]);
-    if (!system_is_NT)
-       count--;
+    count--;
+#ifdef WIN_EX
+    if (system_is_NT)
+       count++;
+#endif
     for (i = 0; i < count; i++) {
        if (stricmp(s, cmdtab[i]) == 0)
            return 1;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]