* libexif/exif-utils.h: definition of MIN
* libexif/pentax/mnote-pentax-entry.c: min -> MIN
(found by Serge Droz <serge.droz@psi.ch>)
+2004-05-12 Jan Patera <patera@users.sourceforge.net>
+
+ * libexif/exif-utils.h: definition of MIN
+ * libexif/pentax/mnote-pentax-entry.c: min -> MIN
+ (found by Serge Droz <serge.droz@psi.ch>)
+
2004-05-11 Jan Patera <patera@users.sourceforge.net>
* libjpeg/jpeg-data.c: memory leak in jpeg_data_set_exif_data,
void exif_set_srational (unsigned char *b, ExifByteOrder order,
ExifSRational value);
+#undef MIN
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+
/* For compatibility with older versions */
#define EXIF_TAG_SUBSEC_TIME EXIF_TAG_SUB_SEC_TIME
default:
switch (entry->format) {
case EXIF_FORMAT_ASCII:
- strncpy (val, entry->data, min(maxlen, entry->components));
+ strncpy (val, entry->data, MIN(maxlen, entry->components));
break;
case EXIF_FORMAT_SHORT:
vs = exif_get_short (entry->data, entry->order);