Skip to content

Commit 68564c0

Browse files
diegosanchezrkornelski
authored andcommitted
Adds extern "C" to transupp.h
1 parent de4cbb5 commit 68564c0

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

transupp.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
* jpegtran.c for an example of correct usage.
2121
*/
2222

23+
#ifdef __cplusplus
24+
#ifndef DONT_USE_EXTERN_C
25+
extern "C" {
26+
#endif
27+
#endif
28+
2329
/* If you happen not to want the image transform support, disable it here */
2430
#ifndef TRANSFORMS_SUPPORTED
2531
#define TRANSFORMS_SUPPORTED 1 /* 0 disables transform code */
@@ -208,3 +214,9 @@ EXTERN(void) jcopy_markers_setup(j_decompress_ptr srcinfo,
208214
EXTERN(void) jcopy_markers_execute(j_decompress_ptr srcinfo,
209215
j_compress_ptr dstinfo,
210216
JCOPY_OPTION option);
217+
218+
#ifdef __cplusplus
219+
#ifndef DONT_USE_EXTERN_C
220+
}
221+
#endif
222+
#endif

0 commit comments

Comments
 (0)