forked from minhngoc25a/freetype2
replace dummy code in PIC support, from typedef to unused global variable.
Watcom C compiler does not recognize typedef-only code as something valid.
This commit is contained in:
parent
2beca49584
commit
0fcbb73fa3
|
@ -146,6 +146,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _autofit_afpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -102,6 +102,12 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _base_basepic_dummy = 1;
|
||||
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -49,6 +49,11 @@
|
|||
ft_base_pic_free( library );
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _base_ftpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -132,6 +132,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _cff_cffpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -70,6 +70,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _pshinter_pshpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -91,6 +91,11 @@
|
|||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _psnames_pspic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -83,6 +83,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _rastter_rastpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -444,7 +444,7 @@
|
|||
#else /* !(TT_CONFIG_OPTION_EMBEDDED_BITMAPS && FT_CONFIG_OPTION_USE_PNG) */
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
typedef int _pngshim_dummy;
|
||||
int _sfnt_pngshim_dummy = 1;
|
||||
|
||||
#endif /* !(TT_CONFIG_OPTION_EMBEDDED_BITMAPS && FT_CONFIG_OPTION_USE_PNG) */
|
||||
|
||||
|
|
|
@ -137,6 +137,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _sfnt_sfntpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -112,6 +112,11 @@
|
|||
ft_smooth_renderer_class_pic_free( library );
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _smooth_ftspic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
|
@ -3762,7 +3762,7 @@
|
|||
#else /* !TT_CONFIG_OPTION_GX_VAR_SUPPORT */
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
typedef int _tt_gxvar_dummy;
|
||||
int _tt_gxvar_dummy = 1;
|
||||
|
||||
#endif /* !TT_CONFIG_OPTION_GX_VAR_SUPPORT */
|
||||
|
||||
|
|
|
@ -95,6 +95,11 @@
|
|||
return error;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* ANSI C doesn't like empty source files */
|
||||
int _truetype_ttpic_dummy = 1;
|
||||
|
||||
#endif /* FT_CONFIG_OPTION_PIC */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue