Extend quvi.fetch to allow setting user-agent [11]
[quvi.git] / lib / platform.h
blob9314b973da00ff7fb0ecae8d0c9ecc4239c67c6e
1 /* quvi
2 * Copyright (C) 2009,2010 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #ifndef platform_h
21 #define platform_h
23 #include "config.h"
25 #include <stdarg.h>
27 #ifndef HAVE_VASPRINTF
28 int vasprintf(char **dst, const char *fmt, va_list ap);
29 #endif
31 #ifndef HAVE_ASPRINTF
32 int asprintf(char **dst, const char *fmt, ...);
33 #endif
35 #ifndef HAVE_STRUPR
36 char *strupr(char *src);
37 #endif
39 #endif