blob: 1e88b4c4dda416c6b139c989268155c36c4df4d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#iZ XXXX
FreeBSD doesn't have alloca.h, and
builtin alloca is defined at stdlib.h.
Index: transex3/source/xmlparse.cxx
===================================================================
RCS file: /cvs/l10n/transex3/source/xmlparse.cxx,v
retrieving revision 1.2
diff -u -r1.2 xmlparse.cxx
--- transex3/source/xmlparse.cxx 30 Aug 2004 17:31:58 -0000 1.2
+++ transex3/source/xmlparse.cxx 3 Oct 2004 08:41:45 -0000
@@ -64,11 +64,12 @@
#include <stdio.h>
-#ifdef WIN32
-#include <malloc.h>
+
+#if defined(SOLARIS) || defined(IRIX)
+ #include <alloca.h>
#else
-#ifndef MACOSX
-#include <alloca.h>
+#if !(defined(MACOSX) || defined(FREEBSD))
+ #include <malloc.h>
#endif
#endif
|