Remove the inline keyword from exif_tag_table_count()
authorDan Fandrich <dan@coneharvesters.com>
Fri, 29 Jun 2018 21:49:56 +0000 (23:49 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 29 Jun 2018 21:49:56 +0000 (23:49 +0200)
This function is called from two object files and some compilers won't
export it when it's explicitly marked inline.

Fixes https://sourceforge.net/p/libexif/bugs/120/ reported by Reid Kleckner.

libexif/exif-tag.c

index aab1543..2236921 100644 (file)
@@ -889,7 +889,7 @@ static const struct TagEntry {
  * Return the number of entries in the EXIF tag table, including the
  * terminating NULL entry.
  */
-inline unsigned int
+unsigned int
 exif_tag_table_count (void)
 {
        return sizeof (ExifTagTable) / sizeof (ExifTagTable[0]);