diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-09-26 15:38:21 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-09-26 15:38:21 +0200 |
| commit | 2bbdd4946561444fffba2bf047b0926a2cf9f5fe (patch) | |
| tree | 7507a7bcac6c5b9833f796fd5ddb02414635c8f7 /src | |
| parent | 2c528b816cbfc3867d7f83cc0a44b906d4e0824e (diff) | |
Remove "warning: extended initializer lists only available with …"
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Timeout.cxx | 7 |
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. |
