]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/resres.c
* windres.c (define_resource): Use zero for timestamp, making
[thirdparty/binutils-gdb.git] / binutils / resres.c
index ff95cb5bea3aa26e34b3353c25f8e67307bc07f9..84f956f1538d2b7952373875aac217da0167bb35 100644 (file)
@@ -1,6 +1,5 @@
 /* resres.c: read_res_file and write_res_file implementation for windres.
-   Copyright 1998, 1999, 2001, 2002, 2005, 2007, 2008, 2011
-   Free Software Foundation, Inc.
+   Copyright 1998-2013 Free Software Foundation, Inc.
    Written by Anders Norlander <anorland@hem2.passagen.se>.
    Rewritten by Kai Tietz, Onevision.
 
@@ -32,7 +31,6 @@
 #include "windres.h"
 
 #include <assert.h>
-#include <time.h>
 
 static rc_uint_type write_res_directory (windres_bfd *, rc_uint_type,
                                         const rc_res_directory *, const rc_res_id *,
@@ -660,17 +658,13 @@ res_append_resource (rc_res_directory **res_dirs, rc_res_resource *resource,
 
       if (*res_dirs == NULL)
        {
-         static unsigned long timeval;
-
-         /* Use the same timestamp for every resource created in a
-            single run.  */
-         if (timeval == 0)
-           timeval = time (NULL);
-
          *res_dirs = ((rc_res_directory *)
                        res_alloc (sizeof (rc_res_directory)));
+
          (*res_dirs)->characteristics = 0;
-         (*res_dirs)->time = timeval;
+         /* Using a real timestamp only serves to create non-deterministic
+            results.  Use zero instead.  */
+         (*res_dirs)->time = 0;
          (*res_dirs)->major = 0;
          (*res_dirs)->minor = 0;
          (*res_dirs)->entries = NULL;