1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
/*
* zsync - client side rsync over http
* Copyright (C) 2004,2005 Colin Phipps <cph@moria.org.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Artistic License v2 (see the accompanying
* file COPYING for the full license terms), or, at your option, any later
* version of the same license.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* COPYING file for details.
*/
#include <inttypes.h>
#ifdef PRIu32
# define SIZE_T_PF "%zd"
#else
# define SIZE_T_PF "%u"
#endif
#if SIZEOF_OFF_T == 8
# ifdef PRIu64
# define OFF_T_PF "%" PRIu64
# else
# define OFF_T_PF "%llu"
# endif
#else
# ifdef PRIu32
# define OFF_T_PF "%" PRIu32
# else
# define OFF_T_PF "%lu"
# endif
#endif
|