"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cpl_serv.h" between
libgeotiff-1.5.1.tar.gz and libgeotiff-1.6.0.tar.gz

About: libgeotiff is a library (built on top of libtiff) for reading and writing coordinate system information from and to GeoTIFF files (GeoTIFF establishes a TIFF based interchange format for georeferenced raster imagery).

cpl_serv.h  (libgeotiff-1.5.1):cpl_serv.h  (libgeotiff-1.6.0)
skipping to change at line 86 skipping to change at line 86
#ifndef FALSE #ifndef FALSE
# define FALSE 0 # define FALSE 0
#endif #endif
#ifndef TRUE #ifndef TRUE
# define TRUE 1 # define TRUE 1
#endif #endif
#ifndef MAX #ifndef MAX
# define MIN(a,b) ((a<b) ? a : b) # define MIN(a,b) (((a)<(b)) ? (a) : (b))
# define MAX(a,b) ((a>b) ? a : b) # define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif #endif
#ifndef NULL #ifndef NULL
#define NULL 0 #define NULL 0
#endif #endif
#ifndef ABS #ifndef ABS
# define ABS(x) ((x<0) ? (-1*(x)) : x) # define ABS(x) (((x)<0) ? (-1*(x)) : (x))
#endif #endif
#ifndef EQUAL #ifndef EQUAL
#if defined(_WIN32) && !defined(__CYGWIN__) #if defined(_WIN32) && !defined(__CYGWIN__)
# if (_MSC_FULL_VER >= 15000000) # if (_MSC_FULL_VER >= 15000000)
# define EQUALN(a,b,n) (_strnicmp(a,b,n)==0) # define EQUALN(a,b,n) (_strnicmp(a,b,n)==0)
# define EQUAL(a,b) (_stricmp(a,b)==0) # define EQUAL(a,b) (_stricmp(a,b)==0)
# else # else
# define EQUALN(a,b,n) (strnicmp(a,b,n)==0) # define EQUALN(a,b,n) (strnicmp(a,b,n)==0)
# define EQUAL(a,b) (stricmp(a,b)==0) # define EQUAL(a,b) (stricmp(a,b)==0)
skipping to change at line 130 skipping to change at line 130
#define VSIFPrintf fprintf #define VSIFPrintf fprintf
#define VSIFPuts fputs #define VSIFPuts fputs
#define VSIFPutc fputc #define VSIFPutc fputc
#define VSIFGets fgets #define VSIFGets fgets
#define VSIRewind rewind #define VSIRewind rewind
#define VSIFSeek fseek #define VSIFSeek fseek
#define VSIFTell ftell #define VSIFTell ftell
#define VSIFRead fread #define VSIFRead fread
#ifndef notdef #ifndef notdef
#define VSICalloc(x,y) _GTIFcalloc(x*y) #define VSICalloc(x,y) _GTIFcalloc((x)*(y))
#define VSIMalloc _GTIFcalloc #define VSIMalloc _GTIFcalloc
#define VSIFree _GTIFFree #define VSIFree _GTIFFree
#define VSIRealloc _GTIFrealloc #define VSIRealloc _GTIFrealloc
#else #else
#define VSICalloc(x,y) (((char *) _GTIFcalloc(x*y+4)) + 4) #define VSICalloc(x,y) (((char *) _GTIFcalloc((x)*(y)+4)) + 4)
#define VSIMalloc(x) (((char *) _GTIFcalloc((x)+4)) + 4) #define VSIMalloc(x) (((char *) _GTIFcalloc((x)+4)) + 4)
#define VSIFree(x) _GTIFFree(((char *) (x)) - 4) #define VSIFree(x) _GTIFFree(((char *) (x)) - 4)
#define VSIRealloc(p,n) (((char *) _GTIFrealloc(((char *)p)-4,(n)+4)) + 4) #define VSIRealloc(p,n) (((char *) _GTIFrealloc(((char *)(p))-4,(n)+4)) + 4)
#endif #endif
#if !defined(GTIFAtof) #if !defined(GTIFAtof)
# define GTIFAtof atof # define GTIFAtof atof
#endif #endif
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
/* Safe malloc() API. Thin cover over VSI functions with fatal */ /* Safe malloc() API. Thin cover over VSI functions with fatal */
/* error reporting if memory allocation fails. */ /* error reporting if memory allocation fails. */
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
 End of changes. 5 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)