aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2011-01-20 07:43:04 +0100
committerJan Djärv2011-01-20 07:43:04 +0100
commite885315dd05a005596d4f0585748d25dadff8901 (patch)
tree1e94f86cc7a5792eed8ea77a48d30945ab1f7d3a /src
parentc11136ec3e0fe7167c3cfcaa25ddac47693d3e88 (diff)
downloademacs-e885315dd05a005596d4f0585748d25dadff8901.tar.gz
emacs-e885315dd05a005596d4f0585748d25dadff8901.zip
* src/unexmacosx.c: Add comment about include order.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/unexmacosx.c13
2 files changed, 13 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8c6e8e8b99a..44fbcc4cf7d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2
3 * unexmacosx.c: Add comment about include order.
4
12011-01-20 Glenn Morris <rgm@gnu.org> 52011-01-20 Glenn Morris <rgm@gnu.org>
2 6
3 * minibuf.c (syms_of_minibuf) <read-expression-history>: 7 * minibuf.c (syms_of_minibuf) <read-expression-history>:
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index d3cf74eb33c..28e04979a4c 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -86,15 +86,20 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
86 be changed accordingly. 86 be changed accordingly.
87*/ 87*/
88 88
89#include <stdio.h> 89/* config.h #define:s malloc/realloc/free and then includes stdlib.h.
90 We want the undefined versions, but if config.h includes stdlib.h
91 with the #define:s in place, the prototypes will be wrong and we get
92 warnings. To prevent that, include stdlib.h before config.h. */
93
90#include <stdlib.h> 94#include <stdlib.h>
91#include <fcntl.h>
92#include <stdarg.h>
93#include <sys/types.h>
94#include <config.h> 95#include <config.h>
95#undef malloc 96#undef malloc
96#undef realloc 97#undef realloc
97#undef free 98#undef free
99#include <stdio.h>
100#include <fcntl.h>
101#include <stdarg.h>
102#include <sys/types.h>
98#include <unistd.h> 103#include <unistd.h>
99#include <mach/mach.h> 104#include <mach/mach.h>
100#include <mach-o/loader.h> 105#include <mach-o/loader.h>