From 60bd22620a1e63fb163a788f9565b94d138c6030 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Tue, 31 Dec 2013 11:10:25 +0000 Subject: mprintf: Replaced internal usage of FORMAT_OFF_T and FORMAT_OFF_TU Following commit 0aafd77fa4c6f2, replaced the internal usage of FORMAT_OFF_T and FORMAT_OFF_TU with the external versions that we expect API programmers to use. This negates the need for separate definitions which were subtly different under different platforms/compilers. --- lib/curl_setup.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'lib/curl_setup.h') diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 7edeca212..62ea92199 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -139,29 +139,6 @@ Error Compilation_aborted_SIZEOF_CURL_OFF_T_shall_not_be_defined #endif -/* - * Set up internal curl_off_t formatting string directives for - * exclusive use with libcurl's internal *printf functions. - */ - -#ifdef FORMAT_OFF_T -# error "FORMAT_OFF_T shall not be defined before this point!" - Error Compilation_aborted_FORMAT_OFF_T_already_defined -#endif - -#ifdef FORMAT_OFF_TU -# error "FORMAT_OFF_TU shall not be defined before this point!" - Error Compilation_aborted_FORMAT_OFF_TU_already_defined -#endif - -#if (CURL_SIZEOF_CURL_OFF_T > CURL_SIZEOF_LONG) -# define FORMAT_OFF_T "lld" -# define FORMAT_OFF_TU "llu" -#else -# define FORMAT_OFF_T "ld" -# define FORMAT_OFF_TU "lu" -#endif - /* * Disable other protocols when http is the only one desired. */ -- cgit v1.2.3