1
mirror of https://github.com/mpv-player/mpv synced 2024-09-12 23:45:53 +02:00

Consistently give all libass multiple inclusion guards a LIBASS_ prefix.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25927 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-01-29 23:25:11 +00:00
parent 933277ac0f
commit a022eca50c
10 changed files with 30 additions and 30 deletions

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_H
#define ASS_H
#ifndef LIBASS_ASS_H
#define LIBASS_ASS_H
#include "ass_types.h"
@ -210,4 +210,4 @@ void ass_clear_fonts(ass_library_t* library);
*/
long long ass_step_sub(ass_track_t* track, long long now, int movement);
#endif /* ASS_H */
#endif /* LIBASS_ASS_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_BITMAP_H
#define ASS_BITMAP_H
#ifndef LIBASS_BITMAP_H
#define LIBASS_BITMAP_H
typedef struct ass_synth_priv_s ass_synth_priv_t;
@ -45,4 +45,4 @@ int glyph_to_bitmap(ass_synth_priv_t* priv, FT_Glyph glyph, FT_Glyph outline_gly
void ass_free_bitmap(bitmap_t* bm);
#endif /* ASS_BITMAP_H */
#endif /* LIBASS_BITMAP_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_CACHE_H
#define ASS_CACHE_H
#ifndef LIBASS_CACHE_H
#define LIBASS_CACHE_H
void ass_font_cache_init(void);
ass_font_t* ass_font_cache_find(ass_font_desc_t* desc);
@ -94,4 +94,4 @@ void hashmap_done(hashmap_t* map);
void* hashmap_insert(hashmap_t* map, void* key, void* value);
void* hashmap_find(hashmap_t* map, void* key);
#endif /* ASS_CACHE_H */
#endif /* LIBASS_CACHE_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_FONT_H
#define ASS_FONT_H
#ifndef LIBASS_FONT_H
#define LIBASS_FONT_H
typedef struct ass_font_desc_s {
char* family;
@ -48,4 +48,4 @@ FT_Glyph ass_font_get_glyph(void* fontconfig_priv, ass_font_t* font, uint32_t ch
FT_Vector ass_font_get_kerning(ass_font_t* font, uint32_t c1, uint32_t c2);
void ass_font_free(ass_font_t* font);
#endif /* ASS_FONT_H */
#endif /* LIBASS_FONT_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_FONTCONFIG_H
#define ASS_FONTCONFIG_H
#ifndef LIBASS_FONTCONFIG_H
#define LIBASS_FONTCONFIG_H
#ifdef HAVE_FONTCONFIG
#include <fontconfig/fontconfig.h>
@ -31,4 +31,4 @@ fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, con
char* fontconfig_select(fc_instance_t* priv, const char* family, unsigned bold, unsigned italic, int* index, uint32_t code);
void fontconfig_done(fc_instance_t* priv);
#endif /* ASS_FONTCONFIG_H */
#endif /* LIBASS_FONTCONFIG_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_LIBRARY_H
#define ASS_LIBRARY_H
#ifndef LIBASS_LIBRARY_H
#define LIBASS_LIBRARY_H
typedef struct ass_fontdata_s {
char* name;
@ -36,4 +36,4 @@ struct ass_library_s {
int num_fontdata;
};
#endif /* ASS_LIBRARY_H */
#endif /* LIBASS_LIBRARY_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_MP_H
#define ASS_MP_H
#ifndef LIBASS_MP_H
#define LIBASS_MP_H
#include "subreader.h"
@ -53,4 +53,4 @@ typedef struct {
extern int ass_force_reload;
ass_image_t* ass_mp_render_frame(ass_renderer_t *priv, ass_track_t* track, long long now, int* detect_change);
#endif /* ASS_MP_H */
#endif /* LIBASS_MP_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_TYPES_H
#define ASS_TYPES_H
#ifndef LIBASS_TYPES_H
#define LIBASS_TYPES_H
#define VALIGN_SUB 0
#define VALIGN_CENTER 8
@ -110,4 +110,4 @@ typedef struct ass_track_s {
parser_priv_t* parser_priv;
} ass_track_t;
#endif /* ASS_TYPES_H */
#endif /* LIBASS_TYPES_H */

View File

@ -18,8 +18,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ASS_UTILS_H
#define ASS_UTILS_H
#ifndef LIBASS_UTILS_H
#define LIBASS_UTILS_H
int mystrtoi(char** p, int base, int* res);
int mystrtou32(char** p, int base, uint32_t* res);
@ -57,4 +57,4 @@ static inline int double_to_d16(double x) {
return (int)(x * 0x10000);
}
#endif /* ASS_UTILS_H */
#endif /* LIBASS_UTILS_H */

View File

@ -1,5 +1,5 @@
#ifndef MPUTILS_H
#define MPUTILS_H
#ifndef LIBASS_MPUTILS_H
#define LIBASS_MPUTILS_H
#include "mp_msg.h"
#include "help_mp.h"
@ -8,4 +8,4 @@
#include "libvo/sub.h" // for utf8_get_char
#include "libavutil/common.h"
#endif /* MPUTILS_H */
#endif /* LIBASS_MPUTILS_H */