/* Setup a directory entry of an array of LONG or SLONG and write the associated indirect values.  */
static int TIFFWriteLongArray(TIFF *, TIFFDataType, ttag_t, TIFFDirEntry *, uint32, uint32 *)
/* Setup a directory entry of an array of LONG or SLONG and write the associated indirect values.  */
static int TIFFWriteLongArray(TIFF *, TIFFDataType, ttag_t, TIFFDirEntry *, uint32, uint32 *)
{
	dir->tdir_tag = tag;
	dir->tdir_type = (short) type;
	dir->tdir_count = n;
	if (n == 1) {
		dir->tdir_offset = v[0];
		return (1);
	} else
		return (TIFFWriteData(tif, dir, (char*) v));
}