Fixed invalid parsing of text-mode received SMS timestamp
[mdsms.git] / acconfig.h
1 /* acconfig.h  Generated manually for use by autoheader.  */
2 /*
3  * $Id$
4  */
5
6 /* Define if your locale.h file contains LC_MESSAGES.  */
7 #undef HAVE_LC_MESSAGES
8
9 /* Define to 1 if NLS is requested.  */
10 #undef ENABLE_NLS
11
12 /* Define as 1 if you have catgets and don't want to use GNU gettext.  */
13 #undef HAVE_CATGETS
14
15 /* Define as 1 if you have gettext and don't want to use GNU gettext.  */
16 #undef HAVE_GETTEXT
17
18 /* Define as 1 if you have the stpcpy function.  */
19 #undef HAVE_STPCPY
20
21 /* __NORETURN define - usually a GCC extension. */
22 #undef __NORETURN
23
24 /* __NORETURN2 define - usually a GCC extension. */
25 #undef __NORETURN2
26
27 /* Turn on debugging to stderr. */
28 #undef DEBUG
29
30 /* Disable runtime assertion checks. */
31 #undef NDEBUG
32
33 /* LINE_MAX from <limits.h>, provide default if not defined. */
34 #undef HAVE_LINE_MAX
35 #undef LINE_MAX
36
37 /* CBAUD define, may be missing. */
38 #undef HAVE_CBAUD
39 #undef CBAUD
40
41 /* CBAUDEX define, may be missing. */
42 #undef HAVE_CBAUDEX
43 #undef CBAUDEX
44
45 /* CRTSCTS define, may be missing. */
46 #undef HAVE_CRTSCTS
47 #undef CRTSCTS
48
49 /* FD_SETSIZE define, may be missing. */
50 #undef HAVE_FD_SETSIZE
51
52 /* offsetof() define, may be missing. */
53 #undef HAVE_OFFSETOF
54
55 /* snprintf(3) unsafe emulation */
56 #undef HAVE_SNPRINTF
57
58 /* vsnprintf(3) unsafe emulation */
59 #undef HAVE_VSNPRINTF
60
61 /* found lockfile directory */
62 #undef DEF_LOCKFILE
63
64 /* how to declare __atribute__ ((__unused__)) */
65 #undef ATTR_UNUSED
66
67 /* whether they have __atttribute__ ((format(printf,...))) */
68 #undef HAVE_PRINTFORMAT
69 #ifdef HAVE_PRINTFORMAT
70 #define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
71 #else
72 #define ATTR_PRINTFORMAT(a,b)
73 #endif
74
75 @BOTTOM@
76
77 #ifdef WANT_DECLARATIONS
78
79 /* Declaration for gethostname(3)? */
80 #undef NEED_DECLARATION_GETHOSTNAME
81 #ifdef NEED_DECLARATION_GETHOSTNAME
82 #ifdef HAVE_UNISTD_H
83 #include <unistd.h>
84 #endif
85 int gethostname(char *name, size_t len);
86 #endif
87
88 /* Declaration for kill(2)? */
89 #undef NEED_DECLARATION_KILL
90 #ifdef NEED_DECLARATION_KILL
91 #ifdef HAVE_SYS_TYPES_H
92 #include <sys/types.h>
93 #endif
94 #ifdef HAVE_SIGNAL_H
95 #include <signal.h>
96 #endif
97 int kill(pid_t pid, int sig);
98 #endif
99
100 /* Declaration for snprintf(3)? */
101 #undef NEED_DECLARATION_SNPRINTF
102 #ifdef NEED_DECLARATION_SNPRINTF
103 #ifdef HAVE_STDIO_H
104 #include <stdio.h>
105 #endif
106 int snprintf(char *str, size_t n, const char *format, ...);
107 #endif
108
109 /* Declaration for vsnprintf(3)? */
110 #undef NEED_DECLARATION_VSNPRINTF
111 #ifdef NEED_DECLARATION_VSNPRINTF
112 #ifdef HAVE_STDIO_H
113 #include <stdio.h>
114 #endif
115 #ifdef HAVE_STDARG_H
116 #include <stdarg.h>
117 #endif
118 int vsnprintf(char *str, size_t n, const char *format, va_list ap);
119 #endif
120
121 /* Declaration for strdup(3)? */
122 #undef NEED_DECLARATION_STRDUP
123 #ifdef NEED_DECLARATION_STRDUP
124 #ifdef HAVE_STRING_H
125 #include <string.h>
126 #endif
127 char *strdup(const char *s);
128 #endif
129
130 /* Declaration for usleep(3)? */
131 #undef NEED_DECLARATION_USLEEP
132 #ifdef NEED_DECLARATION_USLEEP
133 #ifdef HAVE_UNISTD_H
134 #include <unistd.h>
135 #endif
136 void usleep(unsigned long usec);
137 #endif
138
139 /* Declaration for strcasecmp(3)? */
140 #undef NEED_DECLARATION_STRCASECMP
141 #ifdef NEED_DECLARATION_STRCASECMP
142 #ifdef HAVE_STRING_H
143 #include <string.h>
144 #endif
145 int strcasecmp(const char *s1, const char *s2);
146 #endif
147
148 /* Declaration for siginterrupt(3)? */
149 #undef NEED_DECLARATION_SIGINTERRUPT
150 #ifdef NEED_DECLARATION_SIGINTERRUPT
151 #ifdef HAVE_SIGNAL_H
152 #include <signal.h>
153 #endif
154 int siginterrupt(int sig, int flag);
155 #endif
156
157 /* Declaration for popen(3)? */
158 #undef NEED_DECLARATION_POPEN
159 #ifdef NEED_DECLARATION_POPEN
160 #ifdef HAVE_STDIO_H
161 #include <stdio.h>
162 #endif
163 FILE *popen(const char *command, const char *type);
164 #endif
165
166 /* Declaration for pclose(3)? */
167 #undef NEED_DECLARATION_PCLOSE
168 #ifdef NEED_DECLARATION_PCLOSE
169 #ifdef HAVE_STDIO_H
170 #include <stdio.h>
171 #endif
172 int pclose(FILE *stream);
173 #endif
174
175 /* Declaration for gettext(3)? */
176 #undef NEED_DECLARATION_GETTEXT
177 #ifdef NEED_DECLARATION_GETTEXT
178 #ifdef HAVE_LIBINTL_H
179 #include <libintl.h>
180 #endif
181 extern const char *gettext(const char *msgid);
182 #endif
183
184 #endif /* WANT_DECLARATIONS */
185
186 /* snprintf(3) unsafe emulation */
187 #ifdef HAVE_SNPRINTF
188 #define VARPRINTF(v,f,d)               snprintf((v),sizeof((v)),f,(d)                     )
189 #define VARPRINTF2(v,f,d1,d2)          snprintf((v),sizeof((v)),f,(d1),(d2)               )
190 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) snprintf((v),sizeof((v)),f,(d1),(d2),(d3),(d4),(d5))
191 #else
192 #define VARPRINTF(v,f,d)               sprintf((v),f,(d)                     )
193 #define VARPRINTF2(v,f,d1,d2)          sprintf((v),f,(d1),(d2)               )
194 #define VARPRINTF5(v,f,d1,d2,d3,d4,d5) sprintf((v),f,(d1),(d2),(d3),(d4),(d5))
195 #endif
196
197 /* vsnprintf(3) unsafe emulation */
198 #ifdef HAVE_VSNPRINTF
199 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
200 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
201 #else
202 #define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
203 #define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
204 #endif
205
206 #ifndef HAVE_STRERROR
207 extern char *sys_errlist[];
208 #define strerror(i) sys_errlist[i]
209 #endif
210
211 #ifndef HAVE_STRCHR
212 #define strchr index
213 #endif
214
215 #ifndef HAVE_STRRCHR
216 #define strrchr rindex
217 #endif
218
219 #ifdef HAVE_STRCASECMP
220 #define strtrycasecmp strcasecmp
221 #else
222 #define strtrycasecmp strcmp
223 #endif
224
225 #ifndef HAVE_OFFSETOF
226 #define offsetof(a,b) ((size_t)&((a *)0)->b)
227 #endif
228
229 #ifdef WANT_DECLARATIONS
230 /*
231  * Handles all of the internationalization configuration options.
232  * Author: Tom Tromey <tromey@creche.cygnus.com>
233  * Stolen from <libgnome/gnome-i18n.h>
234  * Modified by Jan Kratochvil <short@ucw.cz>
235  */
236 #ifdef ENABLE_NLS
237 #ifdef HAVE_LIBINTL_H
238 #    include <libintl.h>
239 #endif /* HAVE_LIBINTL_H */
240 #    define _(String) gettext (String)
241 #    ifdef gettext_noop
242 #        define N_(String) gettext_noop (String)
243 #    else
244 #        define N_(String) (String)
245 #    endif
246 #else /* ENABLE_NLS */
247 /* Stubs that do something close enough.  */
248 #    define textdomain(String) (String)
249 #    define gettext(String) (String)
250 #    define dgettext(Domain,Message) (Message)
251 #    define dcgettext(Domain,Message,Type) (Message)
252 #    define bindtextdomain(Domain,Directory) (Domain)
253 #    define _(String) (String)
254 #    define N_(String) (String)
255 #endif /* ENABLE_NLS */
256 #endif /* WANT_DECLARATIONS */