mirror of
				https://git.code.sf.net/p/libpng/code.git
				synced 2025-07-10 18:04:09 +02:00 
			
		
		
		
	[master] Eliminated the new special case typedef of png_longjmp_ptr for WATCOM
and made a special case "#define PNGAPI" in pngconf.h instead.
This commit is contained in:
		
							parent
							
								
									be734f5592
								
							
						
					
					
						commit
						bf451ffc9a
					
				
							
								
								
									
										2
									
								
								ANNOUNCE
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ANNOUNCE
									
									
									
									
									
								
							@ -43,6 +43,8 @@ version 1.4.4beta02 [July 24, 2010]
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
version 1.4.4beta03 [July 24, 2010]
 | 
					version 1.4.4beta03 [July 24, 2010]
 | 
				
			||||||
  Removed reference to cbuilder5/* from Makefile.in and Makefile.am
 | 
					  Removed reference to cbuilder5/* from Makefile.in and Makefile.am
 | 
				
			||||||
 | 
					  Eliminated the new special case typedef of png_longjmp_ptr for WATCOM
 | 
				
			||||||
 | 
					    and made a special case "#define PNGAPI" in pngconf.h instead.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
 | 
					Send comments/corrections/commendations to glennrp at users.sourceforge.net
 | 
				
			||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
 | 
					or to png-mng-implement at lists.sf.net (subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								CHANGES
									
									
									
									
									
								
							@ -2627,6 +2627,8 @@ version 1.4.4beta02 [July 24, 2010]
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
version 1.4.4beta03 [July 24, 2010]
 | 
					version 1.4.4beta03 [July 24, 2010]
 | 
				
			||||||
  Removed reference to cbuilder5/* from Makefile.in and Makefile.am
 | 
					  Removed reference to cbuilder5/* from Makefile.in and Makefile.am
 | 
				
			||||||
 | 
					  Eliminated the new special case typedef of png_longjmp_ptr for WATCOM
 | 
				
			||||||
 | 
					    and made a special case "#define PNGAPI" in pngconf.h instead.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
 | 
					Send comments/corrections/commendations to glennrp at users.sourceforge.net
 | 
				
			||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
 | 
					or to png-mng-implement at lists.sf.net (subscription required; visit
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										4
									
								
								png.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								png.h
									
									
									
									
									
								
							@ -1053,11 +1053,7 @@ typedef void (PNGAPI *png_unknown_chunk_ptr) PNGARG((png_structp));
 | 
				
			|||||||
 * application must include this before png.h to obtain the definition
 | 
					 * application must include this before png.h to obtain the definition
 | 
				
			||||||
 * of jmp_buf.
 | 
					 * of jmp_buf.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
#  ifdef __WATCOMC__
 | 
					 | 
				
			||||||
typedef void (*png_longjmp_ptr) PNGARG((jmp_buf, int));
 | 
					 | 
				
			||||||
#  else
 | 
					 | 
				
			||||||
typedef void (PNGAPI *png_longjmp_ptr) PNGARG((jmp_buf, int));
 | 
					typedef void (PNGAPI *png_longjmp_ptr) PNGARG((jmp_buf, int));
 | 
				
			||||||
#  endif
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Transform masks for the high-level interface */
 | 
					/* Transform masks for the high-level interface */
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										32
									
								
								pngconf.h
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								pngconf.h
									
									
									
									
									
								
							@ -439,7 +439,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* The following uses const char * instead of char * for error
 | 
					/* The following uses const char * instead of char * for error
 | 
				
			||||||
 * and warning message functions, so some compilers won't complain.
 | 
					 * and warning message functions, so some compilers won't complain.
 | 
				
			||||||
 * If you do not want to use const, define PNG_NO_CONST here.
 | 
					 * If you do not want to use const, define PNG_NO_CONST.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef PNG_CONST
 | 
					#ifndef PNG_CONST
 | 
				
			||||||
@ -454,8 +454,10 @@
 | 
				
			|||||||
 * library that you will not be using.  I wish I could figure out how to
 | 
					 * library that you will not be using.  I wish I could figure out how to
 | 
				
			||||||
 * automate this, but I can't do that without making it seriously hard
 | 
					 * automate this, but I can't do that without making it seriously hard
 | 
				
			||||||
 * on the users.  So if you are not using an ability, change the #define
 | 
					 * on the users.  So if you are not using an ability, change the #define
 | 
				
			||||||
 * to and #undef, and that part of the library will not be compiled.  If
 | 
					 * to an #undef, or pass in PNG_NO_feature and that part of the library
 | 
				
			||||||
 * your linker can't find a function, you may want to make sure the
 | 
					 * will not be compiled.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 * If your linker can't find a function, you may want to make sure the
 | 
				
			||||||
 * ability is defined here.  Some of these depend upon some others being
 | 
					 * ability is defined here.  Some of these depend upon some others being
 | 
				
			||||||
 * defined.  I haven't figured out all the interactions here, so you may
 | 
					 * defined.  I haven't figured out all the interactions here, so you may
 | 
				
			||||||
 * have to experiment awhile to get everything to compile.  If you are
 | 
					 * have to experiment awhile to get everything to compile.  If you are
 | 
				
			||||||
@ -1236,6 +1238,13 @@ typedef char            FAR * FAR * FAR * png_charppp;
 | 
				
			|||||||
#  define PNG_DLL
 | 
					#  define PNG_DLL
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
 | 
				
			||||||
 | 
					 * you may get warnings regarding the linkage of png_zalloc and png_zfree.
 | 
				
			||||||
 | 
					 * Don't ignore those warnings; you must also reset the default calling
 | 
				
			||||||
 | 
					 * convention in your compiler to match your PNGAPI, and you must build
 | 
				
			||||||
 | 
					 * zlib and your applications the same way you build libpng.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __CYGWIN__
 | 
					#ifdef __CYGWIN__
 | 
				
			||||||
#  undef PNGAPI
 | 
					#  undef PNGAPI
 | 
				
			||||||
#  define PNGAPI __cdecl
 | 
					#  define PNGAPI __cdecl
 | 
				
			||||||
@ -1243,14 +1252,11 @@ typedef char            FAR * FAR * FAR * png_charppp;
 | 
				
			|||||||
#  define PNG_IMPEXP
 | 
					#  define PNG_IMPEXP
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */
 | 
					#ifdef __WATCOMC__
 | 
				
			||||||
 | 
					#  ifndef PNGAPI
 | 
				
			||||||
/* If you define PNGAPI, e.g., with compiler option "-DPNGAPI=__stdcall",
 | 
					#    define PNGAPI
 | 
				
			||||||
 * you may get warnings regarding the linkage of png_zalloc and png_zfree.
 | 
					#  endif
 | 
				
			||||||
 * Don't ignore those warnings; you must also reset the default calling
 | 
					#endif
 | 
				
			||||||
 * convention in your compiler to match your PNGAPI, and you must build
 | 
					 | 
				
			||||||
 * zlib and your applications the same way you build libpng.
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
 | 
					#if defined(__MINGW32__) && !defined(PNG_MODULEDEF)
 | 
				
			||||||
#  ifndef PNG_NO_MODULEDEF
 | 
					#  ifndef PNG_NO_MODULEDEF
 | 
				
			||||||
@ -1267,7 +1273,7 @@ typedef char            FAR * FAR * FAR * png_charppp;
 | 
				
			|||||||
       defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
 | 
					       defined(WIN32) || defined(_WIN32) || defined(__WIN32__) ))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#  ifndef PNGAPI
 | 
					#  ifndef PNGAPI
 | 
				
			||||||
#     if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800)) || defined( __WATCOMC__ )
 | 
					#     if defined(__GNUC__) || (defined (_MSC_VER) && (_MSC_VER >= 800))
 | 
				
			||||||
#        define PNGAPI __cdecl
 | 
					#        define PNGAPI __cdecl
 | 
				
			||||||
#     else
 | 
					#     else
 | 
				
			||||||
#        define PNGAPI _cdecl
 | 
					#        define PNGAPI _cdecl
 | 
				
			||||||
@ -1335,6 +1341,8 @@ typedef char            FAR * FAR * FAR * png_charppp;
 | 
				
			|||||||
#  define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
 | 
					#  define PNG_EXPORT(type,symbol) PNG_IMPEXP type PNGAPI symbol
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define PNG_USE_LOCAL_ARRAYS /* Not used in libpng, defined for legacy apps */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Support for compiler specific function attributes.  These are used
 | 
					/* Support for compiler specific function attributes.  These are used
 | 
				
			||||||
 * so that where compiler support is available incorrect use of API
 | 
					 * so that where compiler support is available incorrect use of API
 | 
				
			||||||
 * functions in png.h will generate compiler warnings.
 | 
					 * functions in png.h will generate compiler warnings.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user