From: Hans U. N. <gp...@n-...> - 2004-03-18 14:46:22
|
Hi Joerg :-) Joerg Hoh <jo...@de...> writes: > I've seen in several files unter libexif/, that sizeof(long) is assumed to > be 4 bytes. On all 32bit plattforms this is true, but on linux and 64bit > plattforms (x86-64, alpha, sparc64, ...) it is 8 bytes in size. > > I'll try to convert to that to uint32_t, which is always 32 bits in size. > Maybe all references to exif_get_short to exif_get_uint16, too? This would > be the most portable and consequent way to do this. Definitely. For formats of a fixed size, one should always use u?int(8|16|32)_t. If required, ship a _stdint.h and do some automake and #ifdef magic. Gru=DF, Uli --=20 Some gphoto2 links: http://www.teaser.fr/~hfiguiere/linux/digicam.html http://gphoto.sf.net/ http://n-dimensional.de/projects/digicam/ #gphoto on irc.freenode.net http://sf.net/projects/gphoto http://sf.net/projects/libusb http://sf.net/projects/libexif |