"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "imageutils/libpngrecolor.c" between
littleutils-1.2.4.tar.lz and littleutils-1.2.5.tar.lz

About: littleutils are a collection of small and simple utilities (rename files, search for duplicate files, ...).

libpngrecolor.c  (littleutils-1.2.4.tar.lz):libpngrecolor.c  (littleutils-1.2.5.tar.lz)
// libpngrecolor.c - part of pngrecolor // libpngrecolor.c - part of pngrecolor
// Copyright (C) 2010 by Jason Summers (from original libpngrewrite.c) // Copyright (C) 2010 by Jason Summers (from original libpngrewrite.c)
// Modifications (C) 2013-2020 by Brian Lindholm // Modifications (C) 2013-2021 by Brian Lindholm
// [1] Renamed from "pngrewrite" to "pngrecolor" at avoid confusion with // [1] Renamed from "pngrewrite" to "pngrecolor" at avoid confusion with
// original program. // original program.
// [2] Modified palette comparison routine to ensure a *unique* sorting. // [2] Modified palette comparison routine to ensure a *unique* sorting.
// [3] Added command-line options "-n" and "-q" for no-interlacing and quiet // [3] Added command-line options "-n" and "-q" for no-interlacing and quiet
// output. // output.
// These modifications may be used without restriction. // These modifications may be used without restriction.
#include <config.h>
#if defined(_WIN32) && !defined(__GNUC__) && !defined(PNGRW_WINDOWS) #if defined(_WIN32) && !defined(__GNUC__) && !defined(PNGRW_WINDOWS)
# define PNGRW_WINDOWS # define PNGRW_WINDOWS
#endif #endif
#ifdef PNGRW_WINDOWS #ifdef PNGRW_WINDOWS
# include <tchar.h> # include <search.h> /* for qsort */
# include <strsafe.h> # include <strsafe.h>
# include <tchar.h>
#endif #endif
#include <config.h> #include <stdarg.h>
#ifdef HAVE_STDIO_H
#include <stdio.h> # include <stdio.h>
#endif
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
# include <stdlib.h> # include <stdlib.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
# include <string.h> # include <string.h>
#endif #endif
#include <stdarg.h>
#ifdef PNGRW_WINDOWS
# include <search.h> /* for qsort */
#endif
#include <png.h> #include <png.h>
#include "libpngrecolor.h" #include "libpngrecolor.h"
#ifdef PNGRW_WINDOWS #ifdef PNGRW_WINDOWS
# define PNGRW_TEXT _T # define PNGRW_TEXT _T
#else #else
# define PNGRW_TEXT(x) x # define PNGRW_TEXT(x) x
# define _tfopen fopen # define _tfopen fopen
 End of changes. 6 change blocks. 
10 lines changed or deleted 9 lines changed or added

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