Commit faf3dbe6 authored by Diego Biurrun's avatar Diego Biurrun Committed by Fiona Glaser
Browse files

x86inc: rename program_name to private_prefix

Synced from libav.
The new name is more descriptive and will allow defining a separate public
prefix for externally visible library symbols.
parent 32695340
......@@ -34,8 +34,8 @@
; as this feature might be useful for others as well. Send patches or ideas
; to x264-devel@videolan.org .
%ifndef program_name
%define program_name x264
%ifndef private_prefix
%define private_prefix x264
%endif
%define WIN64 0
......@@ -650,7 +650,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
%endmacro
%macro cglobal_internal 1-2+
%ifndef cglobaled_%1
%xdefine %1 mangle(program_name %+ _ %+ %1)
%xdefine %1 mangle(private_prefix %+ _ %+ %1)
%xdefine %1.skip_prologue %1 %+ .skip_prologue
CAT_XDEFINE cglobaled_, %1, 1
%endif
......@@ -674,7 +674,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
%endmacro
%macro cextern 1
%xdefine %1 mangle(program_name %+ _ %+ %1)
%xdefine %1 mangle(private_prefix %+ _ %+ %1)
CAT_XDEFINE cglobaled_, %1, 1
extern %1
%endmacro
......@@ -687,7 +687,7 @@ BRANCH_INSTR jz, je, jnz, jne, jl, jle, jnl, jnle, jg, jge, jng, jnge, ja, jae,
%endmacro
%macro const 2+
%xdefine %1 mangle(program_name %+ _ %+ %1)
%xdefine %1 mangle(private_prefix %+ _ %+ %1)
global %1
%1: %2
%endmacro
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment