summaryrefslogtreecommitdiff
path: root/src/libjpeg/jconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjpeg/jconfig.h')
-rw-r--r--src/libjpeg/jconfig.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/libjpeg/jconfig.h b/src/libjpeg/jconfig.h
new file mode 100644
index 0000000..678e3d3
--- /dev/null
+++ b/src/libjpeg/jconfig.h
@@ -0,0 +1,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)