2007-05-08 17:11:53 +02:00
|
|
|
/**
|
|
|
|
* =========================================================================
|
|
|
|
* File : png.h
|
|
|
|
* Project : 0 A.D.
|
|
|
|
* Description : bring in LibPNG header+library, with compatibility fixes
|
|
|
|
* =========================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
|
2007-05-04 19:30:32 +02:00
|
|
|
// <png.h> includes <zlib.h>, which requires some fixes by our header.
|
|
|
|
#include "lib/external_libraries/zlib.h"
|
|
|
|
|
|
|
|
#include <png.h>
|
2007-05-05 19:41:20 +02:00
|
|
|
|
|
|
|
// automatically link against the required library
|
|
|
|
#if MSC_VERSION
|
|
|
|
# ifdef NDEBUG
|
|
|
|
# pragma comment(lib, "libpng13.lib")
|
|
|
|
# else
|
|
|
|
# pragma comment(lib, "libpng13d.lib")
|
|
|
|
# endif // NDEBUG
|
|
|
|
#endif // MSC_VERSION
|