]> git.eshelyaron.com Git - emacs.git/commitdiff
(CGFloat) [!CGFLOAT_DEFINED]: New typedef.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 19 Apr 2008 01:24:57 +0000 (01:24 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Sat, 19 Apr 2008 01:24:57 +0000 (01:24 +0000)
(mac_rect_make): New macro.

src/macgui.h

index 1f4e454c714fff0e66aa5da3363a9d10e43833cc..c1558e98bfe132deb501c16a269134e15605caff 100644 (file)
@@ -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