Description: Make the build reproducible (enforce reproducible timestamps)
Author: Fabian Wolff <fabi.wolff@arcor.de>
Forwarded: https://sourceforge.net/p/codeblocks/tickets/356/
Last-Update: 2016-05-20

--- a/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
+++ b/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
@@ -2854,7 +2854,7 @@
             #else
                 wxT("Scintilla 1.70"),
             #endif
-                wxString::FromAscii(__DATE__).wx_str(), // no need to show time
+                wxString::FromAscii(BUILD_DATE).wx_str(), // no need to show time
                 buildStr.wx_str()
                 );
 
--- a/src/sdk/cbexception.cpp
+++ b/src/sdk/cbexception.cpp
@@ -44,7 +44,7 @@
                  "build: %s %s)"),
                File.c_str(), Line, Message.c_str(),
                ConfigManager::GetRevisionNumber(), gccvers.c_str(),
-               wxT(__DATE__), wxT(__TIME__));
+               wxT(BUILD_DATE), wxT(BUILD_TIME));
     if (safe)
         wxSafeShowMessage(title, err);
     else
--- a/src/sdk/configmanager.cpp
+++ b/src/sdk/configmanager.cpp
@@ -250,12 +250,12 @@
 #ifndef __GNUC__
     info.Printf(_T( " application info:\n"
                     "\t svn_revision:\t%u\n"
-                    "\t build_date:\t%s, %s "), ConfigManager::GetRevisionNumber(), wxT(__DATE__), wxT(__TIME__));
+                    "\t build_date:\t%s, %s "), ConfigManager::GetRevisionNumber(), wxT(BUILD_DATE), wxT(BUILD_TIME));
 #else
     info.Printf(_T( " application info:\n"
                     "\t svn_revision:\t%u\n"
                     "\t build_date:\t%s, %s\n"
-                    "\t gcc_version:\t%d.%d.%d "), ConfigManager::GetRevisionNumber(), wxT(__DATE__), wxT(__TIME__),
+                    "\t gcc_version:\t%d.%d.%d "), ConfigManager::GetRevisionNumber(), wxT(BUILD_DATE), wxT(BUILD_TIME),
                 __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
 #endif
 
--- a/src/src/appglobals.cpp
+++ b/src/src/appglobals.cpp
@@ -63,8 +63,8 @@
     const wxString bit_type              = wxT(" - 32 bit");
 #endif
 
-    const wxString AppBuildTimestamp     = (  wxString(wxT(__DATE__)) + wxT(", ")
-                                            + wxT(__TIME__) + wxT(" - wx")
+    const wxString AppBuildTimestamp     = (  wxString(wxT(BUILD_DATE)) + wxT(", ")
+                                            + wxT(BUILD_TIME) + wxT(" - wx")
                                             + wxString(wxT(wxVERSION_NUM_DOT_STRING))
                                             + wxT(" (") + AppPlatform + wxT(", ")
                                             + AppWXAnsiUnicode + wxT(")") + bit_type );
