aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-08-19 15:14:44 +0000
committerLuca Abeni <lucabe72@email.it>2006-08-19 15:14:44 +0000
commita37e9e860682a8c171188aa975e244391f887f15 (patch)
tree0276b5412d6213c4bacc2bd6ef001f946164ff97
parent9aee40d967ca56229e0d4f15e65c484548ad1a38 (diff)
downloadffmpeg-a37e9e860682a8c171188aa975e244391f887f15.tar.gz
Allow swscale emulation header to be included by C++ programs
Originally committed as revision 6027 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/swscale.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/swscale.h b/libavcodec/swscale.h
index 5d13f90dac..d23d777689 100644
--- a/libavcodec/swscale.h
+++ b/libavcodec/swscale.h
@@ -1,5 +1,10 @@
#ifndef SWSCALE_EMU_H
#define SWSCALE_EMU_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Dummy, only useful for compilation! */
#define SWS_FAST_BILINEAR 1
#define SWS_BILINEAR 2
@@ -29,4 +34,8 @@ int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
void sws_freeContext(struct SwsContext *swsContext);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SWSCALE_EMU_H */