summaryrefslogtreecommitdiff
path: root/src/libjpeg/jconfig.h
blob: 678e3d39a15cbf7a111f0954aa27f52b43dd6aac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * see jconfig.doc
 */

#define HAVE_PROTOTYPES
#define HAVE_UNSIGNED_CHAR
#define HAVE_UNSIGNED_SHORT
#define HAVE_STDDEF_H
#define HAVE_STDLIB_H


#define HAVE_JFIO

#include "im_binfile.h"

#define JFREAD(file,buf,sizeofbuf)  \
  ((size_t) imBinFileRead((imBinFile*)file, (buf), (sizeofbuf), 1))

#define JFWRITE(file,buf,sizeofbuf)  \
  ((size_t) imBinFileWrite((imBinFile*)file, (buf), (sizeofbuf), 1))

#define  JFFLUSH(file) \
  ((void)(file))

#define JFERROR(file) \
  imBinFileError((imBinFile*)file)