ui/ui/toolkit.h

changeset 144
29d98cff4f56
parent 142
46448d38885c
child 145
853685152c1d
--- a/ui/ui/toolkit.h	Sat Nov 11 11:59:06 2017 +0100
+++ b/ui/ui/toolkit.h	Sat Nov 11 12:22:16 2017 +0100
@@ -29,6 +29,8 @@
 #ifndef UI_TOOLKIT_H
 #define	UI_TOOLKIT_H
 
+#include <inttypes.h>
+
 #ifdef UI_COCOA
 
 #ifdef __OBJC__
@@ -189,11 +191,11 @@
 };
 
 struct UiInteger {
-    int  (*get)(UiInteger*);
-    void (*set)(UiInteger*, int);
+    int64_t  (*get)(UiInteger*);
+    void (*set)(UiInteger*, int64_t);
     void *obj;
     
-    int  value;
+    int64_t  value;
     UiObserver *observers;
 };
 

mercurial