add missing extern "C"

Change-Id: Ie325dbbb1c1f0f55a3f207a32c67139f59c03bf2
This commit is contained in:
Pascal Massimino 2011-03-09 21:25:53 -08:00
parent b3ce8c522a
commit a871de0255
3 changed files with 26 additions and 0 deletions

View File

@ -12,6 +12,10 @@
#include <stdlib.h> #include <stdlib.h>
#include "vp8i.h" #include "vp8i.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// VP8Decoder // VP8Decoder
@ -658,3 +662,9 @@ void VP8Clear(VP8Decoder* const dec) {
memset(&dec->br_, 0, sizeof(dec->br_)); memset(&dec->br_, 0, sizeof(dec->br_));
dec->ready_ = 0; dec->ready_ = 0;
} }
//-----------------------------------------------------------------------------
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
#endif

View File

@ -12,6 +12,10 @@
#include <assert.h> #include <assert.h>
#include "webp/encode.h" #include "webp/encode.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// WebPConfig // WebPConfig
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -105,3 +109,7 @@ int WebPValidateConfig(const WebPConfig* const config) {
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
#endif

View File

@ -12,6 +12,10 @@
#include <math.h> #include <math.h>
#include "vp8enci.h" #include "vp8enci.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
// NOTE: clip1, tables and InitTables are repeated entries of dsp.c // NOTE: clip1, tables and InitTables are repeated entries of dsp.c
static uint8_t abs0[255 + 255 + 1]; // abs(i) static uint8_t abs0[255 + 255 + 1]; // abs(i)
static uint8_t abs1[255 + 255 + 1]; // abs(i)>>1 static uint8_t abs1[255 + 255 + 1]; // abs(i)>>1
@ -368,3 +372,7 @@ void VP8AdjustFilterStrength(VP8EncIterator* const it) {
enc->dqm_[s].fstrength_ = best_level; enc->dqm_[s].fstrength_ = best_level;
} }
} }
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
#endif