changeset 80514:fbe5484e7555

(CGFloat) [!CGFLOAT_DEFINED]: New typedef. (mac_rect_make): New macro.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sat, 19 Apr 2008 01:24:57 +0000
parents e58dfb854c06
children 40c9fd5e0c63
files src/macgui.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macgui.h	Sat Apr 19 01:24:47 2008 +0000
+++ b/src/macgui.h	Sat Apr 19 01:24:57 2008 +0000
@@ -124,6 +124,10 @@
 #endif
 #endif
 
+#ifndef CGFLOAT_DEFINED
+typedef float CGFloat;
+#endif
+
 typedef WindowRef Window;
 #if TARGET_API_MAC_CARBON
 typedef ScrapRef Selection;
@@ -147,6 +151,7 @@
 #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