summaryrefslogtreecommitdiff
path: root/libavcodec/jpegls.h
diff options
context:
space:
mode:
authorMateusz <mateuszb@poczta.onet.pl>2017-12-08 08:46:52 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-12-10 14:43:01 +0100
commit149268b47c4b0f9c584771e41d266d10cf7e3bf0 (patch)
tree0519a46f15c290249e8b7f03f2f48fdf4c2bb2bd /libavcodec/jpegls.h
parent1215889bc189e1787d7135dd628b9591d237d737 (diff)
fix MSVC compilation errors
After commit 3701d49 'error_resilience: remove avpriv_atomic usage' we have included windows.h in much more files and we should avoid conflicts with defines/function declarations. Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/jpegls.h')
-rw-r--r--libavcodec/jpegls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/jpegls.h b/libavcodec/jpegls.h
index c8997c7861..6b89b2afa3 100644
--- a/libavcodec/jpegls.h
+++ b/libavcodec/jpegls.h
@@ -32,6 +32,8 @@
#include "avcodec.h"
#include "internal.h"
+#undef near /* This file uses struct member 'near' which in windows.h is defined as empty. */
+
typedef struct JpeglsContext {
AVCodecContext *avctx;
} JpeglsContext;