gcc-3.3 fix, and popular file extensions go first

This commit is contained in:
Albert Cahalan 2005-01-08 22:37:22 +00:00
parent fb887cc188
commit bd4fc997e6

View file

@ -14224,7 +14224,8 @@ static void loadfonts(const char * const dir, int fatal)
const char *restrict const cp = strchr(d_names[i], '.'); const char *restrict const cp = strchr(d_names[i], '.');
if(cp) 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]; int j = sizeof suffixes / sizeof suffixes[0];
while(j--) while(j--)
{ {