Remove "warning: extended initializer lists only available with …"

This commit is contained in:
ManoloFLTK 2023-09-26 15:38:21 +02:00
parent 2c528b816c
commit 2bbdd49465
1 changed files with 6 additions and 1 deletions

View File

@ -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.