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