mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 21:34:08 -07:00
+minor improvements: . move libjpeg-specific stuff to its own header This was SVN commit r5088.
29 lines
788 B
C
29 lines
788 B
C
/**
|
|
* =========================================================================
|
|
* File : libjpeg.h
|
|
* Project : 0 A.D.
|
|
* Description : bring in libjpeg header+library, with compatibility fixes
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_LIBJPEG
|
|
#define INCLUDED_LIBJPEG
|
|
|
|
extern "C" {
|
|
// we are not a core library module, so don't define JPEG_INTERNALS
|
|
#include <jpeglib.h>
|
|
#include <jerror.h>
|
|
}
|
|
|
|
// automatically link against the required library
|
|
#if MSC_VERSION
|
|
# ifdef NDEBUG
|
|
# pragma comment(lib, "jpeg-6b.lib")
|
|
# else
|
|
# pragma comment(lib, "jpeg-6bd.lib")
|
|
# endif // #ifdef NDEBUG
|
|
#endif // #ifdef MSC_VERSION
|
|
|
|
#endif // #ifndef INCLUDED_LIBJPEG
|