CVSROOT: /sources/m4
Module name: m4
Branch: branch-1_4
Changes by: Eric Blake <ericb> 06/06/30 15:06:54
Index: src/builtin.c
===================================================================
RCS file: /sources/m4/m4/src/Attic/builtin.c,v
retrieving revision 1.1.1.1.2.14
retrieving revision 1.1.1.1.2.15
diff -u -b -r1.1.1.1.2.14 -r1.1.1.1.2.15
--- src/builtin.c 23 Jun 2006 12:58:20 -0000 1.1.1.1.2.14
+++ src/builtin.c 30 Jun 2006 15:06:53 -0000 1.1.1.1.2.15
@@ -148,7 +148,13 @@
static predefined const
predefined_tab[] =
{
+#if UNIX
{ "unix", "__unix__", "" },
+#elif W32_NATIVE
+ { "windows", "__windows__", "" },
+#else
+# warning Platform macro not provided
+#endif
{ NULL, "__gnu__", "" },
{ NULL, NULL, NULL },
@@ -770,7 +776,11 @@
m4_syscmd (struct obstack *obs, int argc, token_data **argv)
{
if (bad_argc (argv[0], argc, 2, 2))
+ {
+ /* The empty command is successful. */
+ sysval = 0;
return;
+ }
debug_flush_files ();
sysval = system (ARG (1));
@@ -783,7 +793,11 @@
int ch;
if (bad_argc (argv[0], argc, 2, 2))
+ {
+ /* The empty command is successful. */
+ sysval = 0;
return;
+ }
debug_flush_files ();
errno = 0;