1 // Convenience include file that includes jpeglib.h and jerror.h as well as the 2 // standard include files required by them. 3 #ifndef __dng_jpeglib__ 4 #define __dng_jpeglib__ 5 6 // jpeglib.h requires FILE and size_t to be defined before #including it (it 7 // doesn't pull in the required headers for those definitions itself). 8 #include <stdio.h> 9 #include <stdlib.h> 10 11 // The standard libjpeg headers don't seem to contain an 'extern "C"' (so it's 12 // required when including them from C++). 13 extern "C" { 14 #include "jpeglib.h" 15 #include "jerror.h" 16 } 17 18 #endif // __dng_jpeglib__ 19