Commit ffd7386d authored by Davis King's avatar Davis King

Made libjpeg always use C linking so there are not incompatibilities with

other libjpeg header files.
parent 27052293
...@@ -172,7 +172,11 @@ typedef unsigned int JDIMENSION; ...@@ -172,7 +172,11 @@ typedef unsigned int JDIMENSION;
/* a function referenced thru EXTERNs: */ /* a function referenced thru EXTERNs: */
#define GLOBAL(type) type #define GLOBAL(type) type
/* a reference to a GLOBAL function: */ /* a reference to a GLOBAL function: */
#ifdef __cplusplus
#define EXTERN(type) extern "C" type
#else
#define EXTERN(type) extern type #define EXTERN(type) extern type
#endif
/* This macro is used to declare a "method", that is, a function pointer. /* This macro is used to declare a "method", that is, a function pointer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment