Branch: Tag:

2006-09-11

2006-09-11 16:19:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Only use String.hex2string() if it actually exists...

Rev: lib/modules/Standards.pmod/IIM.pmod:1.4

3:   //   // http://www.iptc.org/IIM/   // - // $Id: IIM.pmod,v 1.3 2006/09/11 14:43:51 grubba Exp $ + // $Id: IIM.pmod,v 1.4 2006/09/11 16:19:54 grubba Exp $   //   // Anders Johansson & Henrik Grubbström   
227:    if (line[0] != '%') continue;    if (bytes < 0) sscanf(line, "%%BeginPhotoshop: %d", bytes);    else if (has_prefix(line, "% ")) { + #if constant(String.hex2string)    photoshop_data += String.hex2string(line[2..]); -  + #else +  photoshop_data += Crypto.hex_to_string(line[2..]); + #endif    if (sizeof(photoshop_data) >= bytes) break;    }    else if (has_prefix(line, "%EndPhotoshop")) {