summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-03-14 17:51:20 +0000
committerManolo Gouy <Manolo>2017-03-14 17:51:20 +0000
commit16b332662977b020e5c9624faf0beb5065cd1bfe (patch)
treee441d724226f21129de2a7b354dd1aeeaf6c62cf /src
parentb9b4d8537965d366b5fc408368282ef27f2c3686 (diff)
Give platform-independent default implementation to Fl_System_Driver::gettime()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_System_Driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_System_Driver.cxx b/src/Fl_System_Driver.cxx
index dc3c1e3b6..c396c9e2f 100644
--- a/src/Fl_System_Driver.cxx
+++ b/src/Fl_System_Driver.cxx
@@ -26,6 +26,7 @@
#include <stdarg.h>
#include <string.h>
#include "flstring.h"
+#include <time.h>
const int Fl_System_Driver::fl_NoValue = 0x0000;
const int Fl_System_Driver::fl_WidthValue = 0x0004;
@@ -438,6 +439,12 @@ FILE *Fl_System_Driver::fopen(const char* f, const char *mode) {
void Fl_System_Driver::open_callback(void (*)(const char *)) {
}
+// Get elapsed time since Jan 1st, 1970.
+void Fl_System_Driver::gettime(time_t *sec, int *usec) {
+ *sec = time(NULL);
+ *usec = 0;
+}
+
//
// End of "$Id$".
//