Make q2c link under mingw32, by eliminating the dependency on
[pspp] / src / language / lexer / q2c.c
index 0b21afbaeed2f208668d4fe345150635c06e2390..4ba008fa3cacc668d9cb7374cf940dbf0e6378bf 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <time.h>
+#include <stdbool.h>
+#include <string.h>
 #include <errno.h>
 #include <unistd.h>
+
 #include <libpspp/assertion.h>
 #include <libpspp/compiler.h>
-#include <libpspp/str.h>
-#include "exit.h"
 
+#include "exit.h"
      
 /* Max length of an input line. */
 #define MAX_LINE_LEN 1024
@@ -1875,18 +1876,10 @@ dump_parser (int persistent)
 static void
 dump_header (void)
 {
-  time_t curtime;
-  struct tm *loctime;
-  char *timep;
-
   indent = 0;
-  curtime = time (NULL);
-  loctime = localtime (&curtime);
-  timep = asctime (loctime);
-  timep[strlen (timep) - 1] = 0;
   dump (0,   "/* %s\t\t-*- mode: c; buffer-read-only: t -*-", ofn);
   dump (0, nullstr);
-  dump (0, "   Generated by q2c from %s on %s.", ifn, timep);
+  dump (0, "   Generated by q2c from %s.", ifn);
   dump (0, "   Do not modify!");
   dump (0, " */");
 }