Skip to content

Commit

Permalink
Put debug function behind ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 13, 2020
1 parent 2edc5e0 commit e59efb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -2085,10 +2085,12 @@ static inline zend_bool exif_offset_info_contains(
return start >= info->valid_start && end <= info->valid_end;
}

#ifdef EXIF_DEBUG
static inline int exif_offset_info_length(const exif_offset_info *info)
{
return info->valid_end - info->valid_start;
}
#endif

/* {{{ exif_file_sections_add
Add a file_section to image_info
Expand Down

0 comments on commit e59efb3

Please sign in to comment.