diff src/macgui.h @ 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 6d01fa145e93
children 5eb403dc8e20 ca9efc5939fc
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