Tizen 2.0 Release
[framework/graphics/cairo.git] / util / cairo-missing / cairo-missing.h
1 /* cairo - a vector graphics library with display and print output
2  *
3  * Copyright © 2006 Red Hat, Inc.
4  * Copyright © 2011 Andrea Canciani
5  *
6  * Permission to use, copy, modify, distribute, and sell this software
7  * and its documentation for any purpose is hereby granted without
8  * fee, provided that the above copyright notice appear in all copies
9  * and that both that copyright notice and this permission notice
10  * appear in supporting documentation, and that the name of the
11  * copyright holders not be used in advertising or publicity
12  * pertaining to distribution of the software without specific,
13  * written prior permission. The copyright holders make no
14  * representations about the suitability of this software for any
15  * purpose.  It is provided "as is" without express or implied
16  * warranty.
17  *
18  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
19  * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
21  * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
22  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
23  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
24  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
25  * SOFTWARE.
26  *
27  * Authors: Carl Worth <cworth@cworth.org>
28  *          Andrea Canciani <ranma42@gmail.com>
29  */
30
31 #ifndef CAIRO_MISSING_H
32 #define CAIRO_MISSING_H
33
34 #include "cairo-compiler-private.h"
35
36 #include <stdio.h>
37 #include <string.h>
38 #include <sys/types.h>
39
40 #ifdef _WIN32
41 #define WIN32_LEAN_AND_MEAN
42 #include <windows.h>
43
44 #ifndef _SSIZE_T_DEFINED
45 typedef SSIZE_T ssize_t;
46 #endif
47 #endif
48
49 #ifndef HAVE_GETLINE
50 cairo_private ssize_t
51 getline (char **lineptr, size_t *n, FILE *stream);
52 #endif
53
54 #ifndef HAVE_STRNDUP
55 cairo_private char *
56 strndup (const char *s, size_t n);
57 #endif
58
59 #endif