diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-09 19:57:49 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-01-09 19:57:49 +0100 |
| commit | 82d279c2341c88da802b82e0d8732399d4f6b481 (patch) | |
| tree | 8689e2a5f0b4615767916acf27a7ce4cad1a1743 /jpeg/jinclude.h | |
| parent | 8c4930a7d76efdb9c3e627912a100e9abaf3f504 (diff) | |
Upgrade bundled libjpeg from jpeg-9a to jpeg-9c
Release: 9a - Jan 14, 2018
For further details see README.bundled-libs.txt.
Diffstat (limited to 'jpeg/jinclude.h')
| -rw-r--r-- | jpeg/jinclude.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jpeg/jinclude.h b/jpeg/jinclude.h index 0a4f15146..20ed4ef11 100644 --- a/jpeg/jinclude.h +++ b/jpeg/jinclude.h @@ -2,6 +2,7 @@ * jinclude.h * * Copyright (C) 1991-1994, Thomas G. Lane. + * Modified 2017 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * @@ -83,9 +84,14 @@ * The modules that use fread() and fwrite() always invoke them through * these macros. On some systems you may need to twiddle the argument casts. * CAUTION: argument order is different from underlying functions! + * + * Furthermore, macros are provided for fflush() and ferror() in order + * to facilitate adaption by applications using an own FILE class. */ #define JFREAD(file,buf,sizeofbuf) \ ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) #define JFWRITE(file,buf,sizeofbuf) \ ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file))) +#define JFFLUSH(file) fflush(file) +#define JFERROR(file) ferror(file) |
