From 24dd8c616d8f37cd5d0689e9c1f23d527945ebdc Mon Sep 17 00:00:00 2001
From: Luca Barbato <lu_zero@gentoo.org>
Date: Wed, 5 Jul 2006 20:32:19 +0000
Subject: [PATCH] =?UTF-8?q?Make=20ffmpeg=20better=20support=20pic=20-=20fr?=
 =?UTF-8?q?om=20Diego=20Petten=C3=B2=20<flameeyes@gentoo.org>?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Originally committed as revision 5631 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavutil/common.h                 | 4 ++++
 libpostproc/postprocess_internal.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/libavutil/common.h b/libavutil/common.h
index 6ef2a13296..7187c579c9 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -18,6 +18,10 @@
 #define M_PI    3.14159265358979323846
 #endif
 
+#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
+#    define PIC
+#endif
+
 #ifdef HAVE_AV_CONFIG_H
 /* only include the following when compiling package */
 #    include "config.h"
diff --git a/libpostproc/postprocess_internal.h b/libpostproc/postprocess_internal.h
index 90107c733a..b1b15c8a85 100644
--- a/libpostproc/postprocess_internal.h
+++ b/libpostproc/postprocess_internal.h
@@ -58,6 +58,10 @@
 #define TEMP_NOISE_FILTER               0x100000
 #define FORCE_QUANT                     0x200000
 
+#if ( defined(__PIC__) || defined(__pic__) ) && ! defined(PIC)
+#    define PIC
+#endif
+
 //use if u want a faster postprocessing code
 //cant differentiate between chroma & luma filters (both on or both off)
 //obviosly the -pp option at the commandline has no effect except turning the here selected