summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2008-04-19 01:24:57 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2008-04-19 01:24:57 +0000
commit15364c8fb7286984e2b18e927f8957a63107129e (patch)
tree30811803fc9aed4417853786f303cc16c2ff1cde
parentd421d4d8fccc7f49bceae903014413c15ce6b097 (diff)
downloademacs-15364c8fb7286984e2b18e927f8957a63107129e.tar.gz
(CGFloat) [!CGFLOAT_DEFINED]: New typedef.
(mac_rect_make): New macro.
-rw-r--r--src/macgui.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h
index 1f4e454c714..c1558e98bfe 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -124,6 +124,10 @@ typedef unsigned long Time;
#endif
#endif
+#ifndef CGFLOAT_DEFINED
+typedef float CGFloat;
+#endif
+
typedef WindowRef Window;
#if TARGET_API_MAC_CARBON
typedef ScrapRef Selection;
@@ -147,6 +151,7 @@ typedef int Selection;
#define mac_size_window SizeWindow
#define mac_get_global_mouse GetGlobalMouse
#define mac_is_window_toolbar_visible IsWindowToolbarVisible
+#define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h)
typedef GWorldPtr Pixmap;
#define Cursor ThemeCursor