* symfile.c (deduce_language_from_filename): .class implies java.

This commit is contained in:
Per Bothner 1998-04-23 22:47:00 +00:00
parent 8efdd18035
commit ffa157d8b1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Apr 23 15:44:39 1998 Per Bothner <bothner@cygnus.com>
* symfile.c (deduce_language_from_filename): .class implies java.
Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
* configure.in (strerror): Check if function must be declared.

View File

@ -1437,7 +1437,7 @@ deduce_language_from_filename (filename)
else if (STREQ (c, ".cc") || STREQ (c, ".C") || STREQ (c, ".cxx")
|| STREQ (c, ".cpp") || STREQ (c, ".cp") || STREQ (c, ".c++"))
return language_cplus;
else if (STREQ (c, ".java"))
else if (STREQ (c, ".java") || STREQ (c, ".class"))
return language_java;
else if (STREQ (c, ".ch") || STREQ (c, ".c186") || STREQ (c, ".c286"))
return language_chill;