comparison lwlib/lwlib.c @ 149:538048ae2ab8 r20-3b1

Import from CVS: tag r20-3b1
author cvs
date Mon, 13 Aug 2007 09:36:16 +0200
parents b980b6286996
children 0132846995bd
comparison
equal deleted inserted replaced
148:f659db2a1f73 149:538048ae2ab8
21 21
22 #ifdef NeXT 22 #ifdef NeXT
23 #undef __STRICT_BSD__ /* ick */ 23 #undef __STRICT_BSD__ /* ick */
24 #endif 24 #endif
25 25
26 #include <config.h>
26 #include <stdlib.h> 27 #include <stdlib.h>
27 #include <unistd.h> 28 #include <unistd.h>
28 #include <sys/types.h> 29 #include <sys/types.h>
29 #include <string.h> 30 #include <string.h>
30 #include <stdio.h> 31 #include <stdio.h>
31 #include <X11/StringDefs.h> 32 #include <X11/StringDefs.h>
32 #include "lwlib-internal.h" 33 #include "lwlib-internal.h"
33 #include "lwlib-utils.h" 34 #include "lwlib-utils.h"
34
35 #if defined(__GNUC__) && !defined(alloca)
36 #define alloca __builtin_alloca
37 #endif
38
39 #if ((!__GNUC__) && !defined(__hpux)) && !defined(_AIX) && !defined (_SCO_DS) && !defined (__USLC__) && !defined(sinix) && !defined(WINDOWSNT) && !defined(_SEQUENT_)
40 #include <alloca.h>
41 #endif
42
43 #ifdef WINDOWSNT
44 /* NT has an _alloca function prototyped in malloc.h --marcpa */
45 #include <malloc.h>
46 #endif
47
48
49 #ifdef __SUNPRO_C
50 void *__builtin_alloca (unsigned int);
51 #endif
52
53 #if defined(_AIX)
54 #pragma alloca
55 #endif
56
57 #ifdef BROKEN_SUNOS_HEADERS
58 extern void * memset (void *, int, int);
59 extern int strcasecmp (char *, char *);
60 extern int fprintf (FILE *, CONST char *, ...);
61 #endif
62 35
63 #ifdef NEED_LUCID 36 #ifdef NEED_LUCID
64 #include "lwlib-Xlw.h" 37 #include "lwlib-Xlw.h"
65 #endif 38 #endif
66 #ifdef NEED_MOTIF 39 #ifdef NEED_MOTIF