From 418783e7608774ba5796d774f689aecdc216f0ed Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 1 Nov 2009 06:45:09 -0600 Subject: [PATCH] [devel] Removed all remaining WIN32_WCE #ifdefs --- ANNOUNCE | 1 + CHANGES | 1 + pngconf.h | 16 +--------------- pngread.c | 2 +- pngrtran.c | 2 +- pngwrite.c | 2 +- 6 files changed, 6 insertions(+), 18 deletions(-) diff --git a/ANNOUNCE b/ANNOUNCE index ab50241b3..9c403657b 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -595,6 +595,7 @@ version 1.4.0beta89 [November 1, 2009] Merged libpng-1.2.41.txt with libpng-1.4.0.txt where appropriate. version 1.4.0beta90 [November 1, 2009] + Removed all remaining WIN32_WCE #ifdefs Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/CHANGES b/CHANGES index 0ac448b8b..bb5a0b366 100644 --- a/CHANGES +++ b/CHANGES @@ -2281,6 +2281,7 @@ version 1.4.0beta89 [November 1, 2009] Merged libpng-1.2.41.txt with libpng-1.4.0.txt where appropriate. version 1.4.0beta90 [November 1, 2009] + Removed all remaining WIN32_WCE #ifdefs Send comments/corrections/commendations to png-mng-implement at lists.sf.net (subscription required; visit diff --git a/pngconf.h b/pngconf.h index 8c9b68739..9d375d59b 100644 --- a/pngconf.h +++ b/pngconf.h @@ -264,14 +264,6 @@ # define PNG_STDIO_SUPPORTED #endif -#ifdef _WIN32_WCE -# include - /* Console I/O functions are not supported on WindowsCE */ -# define PNG_NO_CONSOLE_IO -# ifdef PNG_DEBUG -# undef PNG_DEBUG -# endif -#endif #ifdef PNG_BUILD_DLL # if !defined(PNG_CONSOLE_IO_SUPPORTED) && !defined(PNG_NO_CONSOLE_IO) @@ -331,7 +323,7 @@ #endif /* Enough people need this for various reasons to include it here */ -#if !defined(MACOS) && !defined(RISCOS) && !defined(_WIN32_WCE) +#if !defined(MACOS) && !defined(RISCOS) # include #endif @@ -1034,10 +1026,8 @@ /* Need the time information for reading tIME chunks */ #ifdef PNG_tIME_SUPPORTED -# ifndef _WIN32_WCE /* "time.h" functions are not supported on WindowsCE */ # include -# endif #endif /* Some typedefs to get us started. These should be safe on most of the @@ -1142,11 +1132,7 @@ typedef char FAR * png_charp; typedef png_fixed_point FAR * png_fixed_point_p; #ifndef PNG_NO_STDIO -# ifdef _WIN32_WCE -typedef HANDLE png_FILE_p; -# else typedef FILE * png_FILE_p; -# endif #endif #ifdef PNG_FLOATING_POINT_SUPPORTED diff --git a/pngread.c b/pngread.c index 75953d062..08968cf5d 100644 --- a/pngread.c +++ b/pngread.c @@ -113,7 +113,7 @@ png_create_read_struct_2(png_const_charp user_png_ver, png_voidp error_ptr, (user_png_ver[0] == '1' && user_png_ver[2] != png_libpng_ver[2]) || (user_png_ver[0] == '0' && user_png_ver[2] < '9')) { -#if defined(PNG_STDIO_SUPPORTED) && !defined(_WIN32_WCE) +#ifdef PNG_STDIO_SUPPORTED char msg[80]; if (user_png_ver) { diff --git a/pngrtran.c b/pngrtran.c index b5f705bf7..f72a14013 100644 --- a/pngrtran.c +++ b/pngrtran.c @@ -1315,7 +1315,7 @@ png_do_read_transformations(png_structp png_ptr) if (png_ptr->row_buf == NULL) { -#if defined(PNG_STDIO_SUPPORTED) && !defined(_WIN32_WCE) +#ifdef PNG_STDIO_SUPPORTED) char msg[50]; png_snprintf2(msg, 50, diff --git a/pngwrite.c b/pngwrite.c index fc1bee79a..4c479f265 100644 --- a/pngwrite.c +++ b/pngwrite.c @@ -532,7 +532,7 @@ png_create_write_struct_2(png_const_charp user_png_ver, png_voidp error_ptr, (user_png_ver[0] == '1' && user_png_ver[2] != png_libpng_ver[2]) || (user_png_ver[0] == '0' && user_png_ver[2] < '9')) { -#if defined(PNG_STDIO_SUPPORTED) && !defined(_WIN32_WCE) +#ifdef PNG_STDIO_SUPPORTED char msg[80]; if (user_png_ver) {