]> granicus.if.org Git - libx264/commitdiff
x86inc: only define program_name if the macro is unset.
authorDiego Biurrun <diego@biurrun.de>
Wed, 31 Oct 2012 19:23:54 +0000 (12:23 -0700)
committerFiona Glaser <fiona@x264.com>
Wed, 7 Nov 2012 22:48:38 +0000 (14:48 -0800)
This allows overriding the value from outside the file.
This can be useful if x86inc.asm is used outside of x264.

common/x86/x86inc.asm

index 9da7159307d4e9454da5e28146b35bd0bb914e7c..ac9f9709c4eba3ab004f85fc71fa1c0b3489db1d 100644 (file)
@@ -34,7 +34,9 @@
 ; as this feature might be useful for others as well.  Send patches or ideas
 ; to x264-devel@videolan.org .
 
-%define program_name x264
+%ifndef program_name
+    %define program_name x264
+%endif
 
 %define WIN64  0
 %define UNIX64 0