mirror of https://github.com/fltk/fltk.git
Browse Source
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121pull/168/head
429 changed files with 1430 additions and 1430 deletions
@ -1,81 +1,81 @@ |
|||||||
#ifdef HAVE_LIBZ |
#ifdef HAVE_LIBZ |
||||||
|
|
||||||
#include <zlib.h> |
#include <zlib.h> |
||||||
|
|
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
unsigned long compressedSize = 0; |
unsigned long compressedSize = 0; |
||||||
unsigned char cd[100]; |
unsigned char cd[100]; |
||||||
const unsigned char ud[100] = ""; |
const unsigned char ud[100] = ""; |
||||||
unsigned long uncompressedSize = 0; |
unsigned long uncompressedSize = 0; |
||||||
|
|
||||||
// Call zlib's compress function.
|
// Call zlib's compress function.
|
||||||
if(compress(cd, &compressedSize, ud, uncompressedSize) != Z_OK) |
if(compress(cd, &compressedSize, ud, uncompressedSize) != Z_OK) |
||||||
{ |
{ |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
return 1; |
return 1; |
||||||
} |
} |
||||||
|
|
||||||
|
|
||||||
#endif |
#endif |
||||||
|
|
||||||
#ifdef HAVE_LIBJPEG |
#ifdef HAVE_LIBJPEG |
||||||
|
|
||||||
#include <stdio.h> |
#include <stdio.h> |
||||||
#include <jpeglib.h> |
#include <jpeglib.h> |
||||||
|
|
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
struct jpeg_decompress_struct cinfo; |
struct jpeg_decompress_struct cinfo; |
||||||
jpeg_create_decompress(&cinfo); |
jpeg_create_decompress(&cinfo); |
||||||
jpeg_read_header(&cinfo, TRUE); |
jpeg_read_header(&cinfo, TRUE); |
||||||
return 1; |
return 1; |
||||||
} |
} |
||||||
|
|
||||||
#endif |
#endif |
||||||
|
|
||||||
#ifdef HAVE_LIBPNG |
#ifdef HAVE_LIBPNG |
||||||
#include <png.h> |
#include <png.h> |
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
png_structp png_ptr = png_create_read_struct |
png_structp png_ptr = png_create_read_struct |
||||||
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
||||||
NULL, NULL); |
NULL, NULL); |
||||||
png_infop info_ptr = png_create_info_struct(png_ptr); |
png_infop info_ptr = png_create_info_struct(png_ptr); |
||||||
png_set_sig_bytes(png_ptr, 8); |
png_set_sig_bytes(png_ptr, 8); |
||||||
png_read_info(png_ptr, info_ptr); |
png_read_info(png_ptr, info_ptr); |
||||||
|
|
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
#endif |
#endif |
||||||
|
|
||||||
#ifdef HAVE_PNG_H |
#ifdef HAVE_PNG_H |
||||||
#include <png.h> |
#include <png.h> |
||||||
int main() { retunr 0;} |
int main() { retunr 0;} |
||||||
#endif |
#endif |
||||||
|
|
||||||
#ifdef HAVE_PNG_GET_VALID |
#ifdef HAVE_PNG_GET_VALID |
||||||
#include <png.h> |
#include <png.h> |
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
png_structp png_ptr = png_create_read_struct |
png_structp png_ptr = png_create_read_struct |
||||||
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
||||||
NULL, NULL); |
NULL, NULL); |
||||||
png_infop info_ptr = png_create_info_struct(png_ptr); |
png_infop info_ptr = png_create_info_struct(png_ptr); |
||||||
png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS); |
png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS); |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
#endif |
#endif |
||||||
|
|
||||||
#ifdef HAVE_PNG_SET_TRNS_TO_ALPHA |
#ifdef HAVE_PNG_SET_TRNS_TO_ALPHA |
||||||
#include <png.h> |
#include <png.h> |
||||||
int main() |
int main() |
||||||
{ |
{ |
||||||
png_structp png_ptr = png_create_read_struct |
png_structp png_ptr = png_create_read_struct |
||||||
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
(PNG_LIBPNG_VER_STRING, (png_voidp)NULL, |
||||||
NULL, NULL); |
NULL, NULL); |
||||||
png_set_tRNS_to_alpha(png_ptr); |
png_set_tRNS_to_alpha(png_ptr); |
||||||
return 0; |
return 0; |
||||||
} |
} |
||||||
#endif |
#endif |
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue