From bd4fc997e6bf7af2e8a4ed395e7d948db6045d17 Mon Sep 17 00:00:00 2001 From: Albert Cahalan Date: Sat, 8 Jan 2005 22:37:22 +0000 Subject: [PATCH] gcc-3.3 fix, and popular file extensions go first --- src/tuxpaint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 8846edf38..68033f538 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -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--) {