[4/5] avutil: Don't allow using strcasecmp/strncasecmp

Message ID 1320506745-26168-4-git-send-email-martin@martin.st
State Committed
Commit de8d1940b59a2e4b28caf067b70760f0ff4e352c
Headers show

Commit Message

Martin Storsjö Nov. 5, 2011, 3:25 p.m.
From: Reimar Döffinger <Reimar.Doeffinger@gmx.de>

---
 libavutil/internal.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 5ed3fb8..07e1ef1 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -155,6 +155,10 @@  struct AVDictionary {
 #define puts please_use_av_log_instead_of_puts
 #undef  perror
 #define perror please_use_av_log_instead_of_perror
+#undef strcasecmp
+#define strcasecmp please_use_av_strcasecmp
+#undef strncasecmp
+#define strncasecmp please_use_av_strncasecmp
 
 #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\
 {\