Mon, 17 Nov 2003 14:28:28 +0100
trunk: changeset 59
Set _GNU_SOURCE when compiling with system asprintf. Default to system
asprintf.
5 | 1 | /* |
2 | * libtu/util.h | |
3 | * | |
36 | 4 | * Copyright (c) Tuomo Valkonen 1999-2002. |
53 | 5 | * |
6 | * You may distribute and modify this library under the terms of either | |
7 | * the Clarified Artistic License or the GNU LGPL, version 2.1 or later. | |
5 | 8 | */ |
9 | ||
9 | 10 | #ifndef LIBTU_UTIL_H |
11 | #define LIBTU_UTIL_H | |
5 | 12 | |
13 | #include <stdarg.h> | |
14 | #include <stdio.h> | |
15 | #include <stdlib.h> | |
16 | ||
17 | #include "types.h" | |
12 | 18 | #include "optparser.h" |
5 | 19 | |
12 | 20 | extern void libtu_init(const char *argv0); |
21 | extern void libtu_init_copt(int argc, char *const argv[], | |
22 | const OptParserCommonInfo *cinfo); | |
23 | ||
5 | 24 | |
25 | extern const char *prog_execname(); | |
26 | ||
9 | 27 | #endif /* LIBTU_UTIL_H */ |