gcc-3.3 fix, and popular file extensions go first
This commit is contained in:
parent
fb887cc188
commit
bd4fc997e6
1 changed files with 2 additions and 1 deletions
|
|
@ -14224,7 +14224,8 @@ static void loadfonts(const char * const dir, int fatal)
|
|||
const char *restrict const cp = strchr(d_names[i], '.');
|
||||
if(cp)
|
||||
{
|
||||
const char *restrict const suffixes[] = {"ttf", "otf", "pfa", "pfb", "dfont", "ttc",};
|
||||
// need gcc 3.4 for the restrict in this location
|
||||
const char * /*restrict*/ const suffixes[] = {"ttc", "dfont", "pfa", "pfb", "otf", "ttf",};
|
||||
int j = sizeof suffixes / sizeof suffixes[0];
|
||||
while(j--)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue