summaryrefslogtreecommitdiff
path: root/FL/platform_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'FL/platform_types.h')
-rw-r--r--FL/platform_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/FL/platform_types.h b/FL/platform_types.h
index 7c6b3a0b6..71c412abb 100644
--- a/FL/platform_types.h
+++ b/FL/platform_types.h
@@ -81,6 +81,7 @@ typedef opaque Fl_Timestamp;
#define FL_PLATFORM_TYPES_H
#include <FL/fl_config.h>
+#include <time.h> // for time_t
/* Platform-dependent types are defined here.
These types must be defined by any platform:
@@ -139,8 +140,8 @@ extern FL_EXPORT int fl_control_modifier();
// This is currently the same for all platforms, but may change in the future
struct Fl_Timestamp_t {
- long sec;
- long usec;
+ time_t sec;
+ int usec;
};
typedef struct Fl_Timestamp_t Fl_Timestamp;