vtk_jpeg.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtk_jpeg.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 #ifndef vtk_jpeg_h
16 #define vtk_jpeg_h
17 
18 /* Use the jpeg library configured for VTK. */
19 #define VTK_MODULE_USE_EXTERNAL_vtkjpeg 0
20 
21 #if VTK_MODULE_USE_EXTERNAL_vtkjpeg
22  /* Work-around for a conflict between windows.h and jpeglib.h in cygwin.
23  If ADDRESS_TAG_BIT is defined then BaseTsd.h has been included and
24  INT32 has been defined with a typedef, so we must define XMD_H to
25  prevent the jpeg header from defining it again. */
26 # if defined(__CYGWIN__) && defined(ADDRESS_TAG_BIT) && !defined(XMD_H)
27 # define XMD_H
28 # define VTK_JPEG_XMD_H
29 # endif
30 # include <jpeglib.h>
31 # include <jerror.h>
32 #else
33 # include <vtkjpeg/jconfig.h>
34 # include <vtkjpeg/jmorecfg.h>
35 // Ensure jpeglib.h does not include jconfig.h nor jmorecfg.h from another include directory.
36 # define JCONFIG_INCLUDED
37 # define JMORECFG_INCLUDED
38 # include <vtkjpeg/jpeglib.h>
39 # include <vtkjpeg/jerror.h>
40 # undef JCONFIG_INCLUDED
41 # undef JMORECFG_INCLUDED
42 #endif
43 
44 #endif