add c++ guards

Change-Id: I0d4fa090e88499e2e3f1571b149666bde3304cda
This commit is contained in:
Pascal Massimino 2011-03-23 18:41:18 -07:00
parent 8bf76fe0c8
commit 208afb5ea1

View File

@ -17,6 +17,10 @@
#include "vp8i.h" #include "vp8i.h"
#include "yuv.h" #include "yuv.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#define RIFF_HEADER_SIZE 20 #define RIFF_HEADER_SIZE 20
#define VP8_HEADER_SIZE 10 #define VP8_HEADER_SIZE 10
#define WEBP_HEADER_SIZE (RIFF_HEADER_SIZE + VP8_HEADER_SIZE) #define WEBP_HEADER_SIZE (RIFF_HEADER_SIZE + VP8_HEADER_SIZE)
@ -565,3 +569,7 @@ uint8_t* WebPIDecGetYUV(const WebPIDecoder* idec, int *last_y, uint8_t** u,
return idec->params_.output; return idec->params_.output;
} }
#if defined(__cplusplus) || defined(c_plusplus)
} // extern "C"
#endif