// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen // SPDX-License-Identifier: BSD-3-Clause #ifndef vtk_jpeg_h #define vtk_jpeg_h #include #include /* Use the jpeg library configured for VTK. */ #define VTK_MODULE_USE_EXTERNAL_vtkjpeg 0 #if VTK_MODULE_USE_EXTERNAL_vtkjpeg /* Work-around for a conflict between windows.h and jpeglib.h in cygwin. If ADDRESS_TAG_BIT is defined then BaseTsd.h has been included and INT32 has been defined with a typedef, so we must define XMD_H to prevent the jpeg header from defining it again. */ # if defined(__CYGWIN__) && defined(ADDRESS_TAG_BIT) && !defined(XMD_H) # define XMD_H # define VTK_JPEG_XMD_H # endif # include # include #else # include # include // Ensure jpeglib.h does not include jconfig.h nor jmorecfg.h from another include directory. # define JCONFIG_INCLUDED # define JMORECFG_INCLUDED # include # include # undef JCONFIG_INCLUDED # undef JMORECFG_INCLUDED #endif #endif