Skip to content

Commit

Permalink
Remove usage of obsolete macro c_plusplus
Browse files Browse the repository at this point in the history
ported from #3612 from libjxl
  • Loading branch information
mo271 committed Nov 5, 2024
1 parent 0d2ff9c commit 358564c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/jpegli/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "lib/base/include_jpeglib.h" // NOLINT

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
extern "C" {
#endif

Expand All @@ -37,7 +37,7 @@ JQUANT_TBL* jpegli_alloc_quant_table(j_common_ptr cinfo);

JHUFF_TBL* jpegli_alloc_huff_table(j_common_ptr cinfo);

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
} // extern "C"
#endif

Expand Down
4 changes: 2 additions & 2 deletions lib/jpegli/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "lib/jpegli/common.h"
#include "lib/jpegli/types.h"

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -101,7 +101,7 @@ void jpegli_new_colormap(j_decompress_ptr cinfo);
void jpegli_set_output_format(j_decompress_ptr cinfo, JpegliDataType data_type,
JpegliEndianness endianness);

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
} // extern "C"
#endif

Expand Down
4 changes: 2 additions & 2 deletions lib/jpegli/encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "lib/jpegli/common.h"
#include "lib/jpegli/types.h"

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
extern "C" {
#endif

Expand Down Expand Up @@ -153,7 +153,7 @@ void jpegli_set_progressive_level(j_compress_ptr cinfo, int level);
// AC coefficients. Must be called before jpegli_set_defaults().
void jpegli_use_standard_quant_tables(j_compress_ptr cinfo);

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
} // extern "C"
#endif

Expand Down
4 changes: 2 additions & 2 deletions lib/jpegli/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#ifndef LIB_JPEGLI_TYPES_H_
#define LIB_JPEGLI_TYPES_H_

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
extern "C" {
#endif

Expand All @@ -32,7 +32,7 @@ typedef enum {

int jpegli_bytes_per_sample(JpegliDataType data_type);

#if defined(__cplusplus) || defined(c_plusplus)
#ifdef __cplusplus
} // extern "C"
#endif

Expand Down

0 comments on commit 358564c

Please sign in to comment.