Use _TIFFRewriteField() instead of TIFFRewriteField().
This commit is contained in:
parent
35b0e74065
commit
481c2432f2
@ -1,4 +1,4 @@
|
||||
/* $Id: rewrite_tag.c,v 1.2 2008-03-28 01:42:06 bfriesen Exp $ */
|
||||
/* $Id: rewrite_tag.c,v 1.3 2008-04-15 12:53:07 dron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007, Frank Warmerdam <warmerdam@pobox.com>
|
||||
@ -26,7 +26,7 @@
|
||||
/*
|
||||
* TIFF Library
|
||||
*
|
||||
* Module to test TIFFRewriteField().
|
||||
* Module to test _TIFFRewriteField().
|
||||
*/
|
||||
|
||||
#include "tif_config.h"
|
||||
@ -38,6 +38,7 @@
|
||||
#endif
|
||||
|
||||
#include "tiffio.h"
|
||||
#include "tiffiop.h"
|
||||
|
||||
const uint32 width = 10;
|
||||
const uint32 length = 40;
|
||||
@ -222,7 +223,7 @@ int rewrite_test( const char *filename, int length, int bigtiff,
|
||||
for( i = 0; i < length; i++ )
|
||||
upd_rowoffset[i] = base_value + i*10;
|
||||
|
||||
if( !TIFFRewriteField( tif, TIFFTAG_STRIPOFFSETS, TIFF_LONG8,
|
||||
if( !_TIFFRewriteField( tif, TIFFTAG_STRIPOFFSETS, TIFF_LONG8,
|
||||
length, upd_rowoffset ) )
|
||||
{
|
||||
fprintf (stderr, "Can't rewrite STRIPOFFSETS.\n");
|
||||
@ -235,7 +236,7 @@ int rewrite_test( const char *filename, int length, int bigtiff,
|
||||
for( i = 0; i < length; i++ )
|
||||
upd_bytecount[i] = 100 + i*10;
|
||||
|
||||
if( !TIFFRewriteField( tif, TIFFTAG_STRIPBYTECOUNTS, TIFF_LONG,
|
||||
if( !_TIFFRewriteField( tif, TIFFTAG_STRIPBYTECOUNTS, TIFF_LONG,
|
||||
length, upd_bytecount ) )
|
||||
{
|
||||
fprintf (stderr, "Can't rewrite STRIPBYTECOUNTS.\n");
|
||||
|
Loading…
Reference in New Issue
Block a user