summaryrefslogtreecommitdiff
path: root/src/Alloc.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-03-01 13:44:14 +0000
committerEgbert Eich <eich@suse.de>2004-03-01 13:44:14 +0000
commitdb14fa49b0d76bb44d6c6f5cb1c978d32b31c4f1 (patch)
tree6f72daca2e517d094c6e5638d30b306ab9c2a960 /src/Alloc.c
parentcdaa6bdee4f6796ac6337fa030bfe4aaa3975db2 (diff)
3. Added missing parts to XKB to make XEVIE branch compile (Egbert Eich).XEVIE
2. Merged with XORG-CURRENT branch to obtain a bugfix (Egbert Eich). 1. First add of SUN's XIVIE extension (Stuart Kreitman).
Diffstat (limited to 'src/Alloc.c')
-rw-r--r--src/Alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Alloc.c b/src/Alloc.c
index 80fadfb..939d216 100644
--- a/src/Alloc.c
+++ b/src/Alloc.c
@@ -58,7 +58,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
-/* $XFree86: xc/lib/Xt/Alloc.c,v 1.9 2001/12/14 19:56:07 dawes Exp $ */
+/* $XFree86: xc/lib/Xt/Alloc.c,v 1.10 2003/12/30 01:45:07 tsi Exp $ */
/*
* X Toolkit Memory Allocation Routines
@@ -117,7 +117,7 @@ char *XtMalloc(size)
{
char *ptr;
-#if defined (MALLOC_0_RETURNS_NULL) && defined(XTMALLOC_BC)
+#if defined(MALLOC_0_RETURNS_NULL) && defined(XTMALLOC_BC)
/* preserve this (broken) behavior until everyone fixes their apps */
if (!size) size = 1;
#endif
@@ -132,12 +132,12 @@ char *XtRealloc(ptr, size)
unsigned size;
{
if (ptr == NULL) {
-#if MALLOC_0_RETURNS_NULL
+#ifdef MALLOC_0_RETURNS_NULL
if (!size) size = 1;
#endif
return(XtMalloc(size));
} else if ((ptr = Xrealloc(ptr, size)) == NULL
-#if MALLOC_0_RETURNS_NULL
+#ifdef MALLOC_0_RETURNS_NULL
&& size
#endif
)
@@ -151,7 +151,7 @@ char *XtCalloc(num, size)
{
char *ptr;
-#if defined (MALLOC_0_RETURNS_NULL) && defined(XTMALLOC_BC)
+#if defined(MALLOC_0_RETURNS_NULL) && defined(XTMALLOC_BC)
/* preserve this (broken) behavior until everyone fixes their apps */
if (!size) num = size = 1;
#endif