aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-04-29 09:00:57 +0000
committerYAMAMOTO Mitsuharu2005-04-29 09:00:57 +0000
commit7a92caf8cef43f7ae3f4912d5d69a5bd1e6c95df (patch)
treecf5d1ed1a4460f8ef6e8857bc840110fbf7332b2 /src
parent4f19cb1521ff3c2c50820d91c00dea6d2af48954 (diff)
downloademacs-7a92caf8cef43f7ae3f4912d5d69a5bd1e6c95df.tar.gz
emacs-7a92caf8cef43f7ae3f4912d5d69a5bd1e6c95df.zip
[HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
before/after including Carbon.h if there is a working mktime.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/macgui.h4
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d2471f41229..da4758f5f49 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * mac.c: Don't include time.h. Include sysselect.h after
4 systime.h.
5
6 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
7
8 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
9 before/after including Carbon.h if there is a working mktime.
10
12005-04-28 Kim F. Storm <storm@cua.dk> 112005-04-28 Kim F. Storm <storm@cua.dk>
2 12
3 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed. 13 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
@@ -87,7 +97,7 @@
87 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste) 97 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
88 (Qperform): New variables. 98 (Qperform): New variables.
89 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them. 99 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
90 (do_get_menus) [!TARGET_API_MAC_CARBON]: Don't call AppendResMenu. 100 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
91 (do_menu_choice): Unhighlight menu bar also when menu_id is 0. 101 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
92 (mac_store_application_menu_event, init_menu_bar): New functions. 102 (mac_store_application_menu_event, init_menu_bar): New functions.
93 [USE_CARBON_EVENTS] (mac_handle_command_event) 103 [USE_CARBON_EVENTS] (mac_handle_command_event)
diff --git a/src/macgui.h b/src/macgui.h
index 5d4f1894e2e..939496aaeef 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -32,7 +32,9 @@ typedef unsigned long Time;
32#ifdef HAVE_CARBON 32#ifdef HAVE_CARBON
33#undef Z 33#undef Z
34#ifdef MAC_OSX 34#ifdef MAC_OSX
35#if ! HAVE_MKTIME || BROKEN_MKTIME
35#undef mktime 36#undef mktime
37#endif
36#undef DEBUG 38#undef DEBUG
37#undef free 39#undef free
38#undef malloc 40#undef malloc
@@ -43,8 +45,10 @@ typedef unsigned long Time;
43#undef min 45#undef min
44#undef init_process 46#undef init_process
45#include <Carbon/Carbon.h> 47#include <Carbon/Carbon.h>
48#if ! HAVE_MKTIME || BROKEN_MKTIME
46#undef mktime 49#undef mktime
47#define mktime emacs_mktime 50#define mktime emacs_mktime
51#endif
48#undef free 52#undef free
49#define free unexec_free 53#define free unexec_free
50#undef malloc 54#undef malloc