OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2010,2011 Google, Inc. | 2 * Copyright © 2010,2011 Google, Inc. |
3 * | 3 * |
4 * This is part of HarfBuzz, a text shaping library. | 4 * This is part of HarfBuzz, a text shaping library. |
5 * | 5 * |
6 * Permission is hereby granted, without written agreement and without | 6 * Permission is hereby granted, without written agreement and without |
7 * license or royalty fees, to use, copy, modify, and distribute this | 7 * license or royalty fees, to use, copy, modify, and distribute this |
8 * software and its documentation for any purpose, provided that the | 8 * software and its documentation for any purpose, provided that the |
9 * above copyright notice and the following two paragraphs appear in | 9 * above copyright notice and the following two paragraphs appear in |
10 * all copies of this software. | 10 * all copies of this software. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * Google Author(s): Behdad Esfahbod | 24 * Google Author(s): Behdad Esfahbod |
25 */ | 25 */ |
26 | 26 |
27 #ifdef HAVE_CONFIG_H | 27 #ifdef HAVE_CONFIG_H |
28 #include "config.h" | 28 #include "config.h" |
29 #endif | 29 #endif |
30 | 30 |
31 #include "hb.h" | 31 #include "hb.h" |
32 | 32 |
33 #ifdef HAVE_GLIB | 33 #ifdef HAVE_GLIB |
34 #include <glib.h> | 34 # include <glib.h> |
| 35 # if !GLIB_CHECK_VERSION (2, 22, 0) |
| 36 # define g_mapped_file_unref g_mapped_file_free |
| 37 # endif |
35 #endif | 38 #endif |
36 #include <stdlib.h> | 39 #include <stdlib.h> |
37 #include <stdio.h> | 40 #include <stdio.h> |
38 | 41 |
39 #ifdef HAVE_FREETYPE | 42 #ifdef HAVE_FREETYPE |
40 #include "hb-ft.h" | 43 #include "hb-ft.h" |
41 #endif | 44 #endif |
42 | 45 |
43 int | 46 int |
44 main (int argc, char **argv) | 47 main (int argc, char **argv) |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 127 } |
125 | 128 |
126 hb_buffer_destroy (buffer); | 129 hb_buffer_destroy (buffer); |
127 hb_font_destroy (font); | 130 hb_font_destroy (font); |
128 hb_face_destroy (face); | 131 hb_face_destroy (face); |
129 | 132 |
130 return 0; | 133 return 0; |
131 } | 134 } |
132 | 135 |
133 | 136 |
OLD | NEW |