summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Fl_Timeout.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Fl_Timeout.cxx b/src/Fl_Timeout.cxx
index a707e554e..50445eec6 100644
--- a/src/Fl_Timeout.cxx
+++ b/src/Fl_Timeout.cxx
@@ -81,7 +81,12 @@ Fl_Timestamp Fl::now() {
}
/** The time stamp of a time point in the distant past */
-const Fl_Timestamp Fl::distant_past() { return {LONG_MIN/10, 0}; }
+const Fl_Timestamp Fl::distant_past() {
+ Fl_Timestamp ts;
+ ts.sec = LONG_MIN/10;
+ ts.usec = 0;
+ return (const Fl_Timestamp)ts;
+}
/**
Return the time in seconds between now and a previously taken time stamp.