OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 2 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
3 * Copyright (C) 2007 Red Hat, Inc. | 3 * Copyright (C) 2007 Red Hat, Inc. |
4 * | 4 * |
5 * This is part of HarfBuzz, an OpenType Layout engine library. | 5 * This is part of HarfBuzz, an OpenType Layout engine library. |
6 * | 6 * |
7 * Permission is hereby granted, without written agreement and without | 7 * Permission is hereby granted, without written agreement and without |
8 * license or royalty fees, to use, copy, modify, and distribute this | 8 * license or royalty fees, to use, copy, modify, and distribute this |
9 * software and its documentation for any purpose, provided that the | 9 * software and its documentation for any purpose, provided that the |
10 * above copyright notice and the following two paragraphs appear in | 10 * above copyright notice and the following two paragraphs appear in |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include <string.h> | 32 #include <string.h> |
33 | 33 |
34 #ifdef __cplusplus | 34 #ifdef __cplusplus |
35 #define HB_BEGIN_HEADER extern "C" { | 35 #define HB_BEGIN_HEADER extern "C" { |
36 #define HB_END_HEADER } | 36 #define HB_END_HEADER } |
37 #else | 37 #else |
38 #define HB_BEGIN_HEADER /* nothing */ | 38 #define HB_BEGIN_HEADER /* nothing */ |
39 #define HB_END_HEADER /* nothing */ | 39 #define HB_END_HEADER /* nothing */ |
40 #endif | 40 #endif |
41 | 41 |
42 #if defined(__GNUC__) || defined(_MSC_VER) | |
43 #define HB_USE_PACKED_STRUCTS | |
44 #endif | |
45 | |
46 HB_BEGIN_HEADER | 42 HB_BEGIN_HEADER |
47 | 43 |
48 #ifndef FALSE | 44 #ifndef FALSE |
49 #define FALSE 0 | 45 #define FALSE 0 |
50 #endif | 46 #endif |
51 | 47 |
52 #ifndef TRUE | 48 #ifndef TRUE |
53 #define TRUE (!FALSE) | 49 #define TRUE (!FALSE) |
54 #endif | 50 #endif |
55 | 51 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 HB_Fixed y; | 109 HB_Fixed y; |
114 } HB_FixedPoint; | 110 } HB_FixedPoint; |
115 | 111 |
116 typedef struct HB_Font_ *HB_Font; | 112 typedef struct HB_Font_ *HB_Font; |
117 typedef struct HB_StreamRec_ *HB_Stream; | 113 typedef struct HB_StreamRec_ *HB_Stream; |
118 typedef struct HB_FaceRec_ *HB_Face; | 114 typedef struct HB_FaceRec_ *HB_Face; |
119 | 115 |
120 HB_END_HEADER | 116 HB_END_HEADER |
121 | 117 |
122 #endif | 118 #endif |
OLD | NEW |