[x264-devel] x86inc: only define program_name if the macro is unset.

Diego Biurrun git at videolan.org
Thu Nov 8 00:55:03 CET 2012


x264 | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Oct 31 12:23:54 2012 -0700| [f418867a8b76f31acf3a965eed34c5587294e948] | committer: Jason Garrett-Glaser

x86inc: only define program_name if the macro is unset.
This allows overriding the value from outside the file.
This can be useful if x86inc.asm is used outside of x264.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=f418867a8b76f31acf3a965eed34c5587294e948
---

 common/x86/x86inc.asm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/common/x86/x86inc.asm b/common/x86/x86inc.asm
index d7513be..368b6f7 100644
--- a/common/x86/x86inc.asm
+++ b/common/x86/x86inc.asm
@@ -34,7 +34,9 @@
 ; as this feature might be useful for others as well.  Send patches or ideas
 ; to x264-devel at videolan.org .
 
-%define program_name x264
+%ifndef program_name
+    %define program_name x264
+%endif
 
 %define WIN64  0
 %define UNIX64 0



More information about the x264-devel mailing list