diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2014-11-25 09:48:54 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2014-11-25 09:48:54 +0000 |
commit | b218cb3e17f8be5f35632629dc333354b8438719 (patch) | |
tree | b65008216a4eaf480298fa0151a14c55b38b49be /jmorecfg.h | |
parent | 84c2256f6e81e08b9d8ac8af7276e960718c8fd5 (diff) |
Restore the JPP() and JMETHOD() macros. Even though libjpeg-turbo doesn't use them anymore, other software apparently does:
https://bugzilla.redhat.com/show_bug.cgi?id=1164815
https://bugs.kde.org/show_bug.cgi?id=340944
https://bugzilla.mozilla.org/show_bug.cgi?id=1093615
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1431 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jmorecfg.h')
-rw-r--r-- | jmorecfg.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -180,6 +180,16 @@ typedef unsigned int JDIMENSION; #define EXTERN(type) extern type +/* Originally, this macro was used as a way of defining function prototypes + * for both modern compilers as well as older compilers that did not support + * prototype parameters. libjpeg-turbo no longer supports these older + * compilers, but the macro is still included because there is some software + * out there that uses it. + */ + +#define JMETHOD(type,methodname,arglist) type (*methodname) arglist + + /* * On a few systems, type boolean and/or its values FALSE, TRUE may appear * in standard header files. Or you may have conflicts with application- |