[FFmpeg-devel] [PATCH] avutil/mem: Mark DECLARE_ASM_ALIGNED as visibility("hidden") for __GNUC__
Fāng-ruì Sòng
maskray at google.com
Thu Mar 14 05:35:59 EET 2019
On Thu, Mar 14, 2019 at 10:36 AM Fāng-ruì Sòng <maskray at google.com> wrote:
>
> On Thu, Mar 14, 2019 at 9:59 AM Henrik Gramner <henrik at gramner.com> wrote:
> >
> > On Wed, Feb 20, 2019 at 8:03 PM Fāng-ruì Sòng
> > <maskray-at-google.com at ffmpeg.org> wrote:
> > > --- a/libavutil/mem.h
> > > +++ b/libavutil/mem.h
> > >
> > > +#if defined(__GNUC__) && !(defined(_WIN32) || defined(__CYGWIN__))
> > > + #define DECLARE_HIDDEN __attribute__ ((visibility ("hidden")))
> > > +#else
> > > + #define DECLARE_HIDDEN
> > > +#endif
> >
> > libavutil/mem.h is a public header so any defines added should have
> > appropriate prefixes (yes, the existing defines violate this which is
> > something that should be addressed, but that's a different issue).
>
> Do you have suggestions on the naming? av_declare_hidden?
>
> > Alternatively maybe those macros should be moved to some internal
> > header because I don't really see any value of having inline asm
> > support macros public.
>
> That would change too many files. I'd rather not do that in this patch.
I still don't have access to my neomutt so I send the patch as an
attached file via the webmail
--
宋方睿
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.patch
Type: text/x-patch
Size: 2517 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190314/b5ebb260/attachment.bin>
More information about the ffmpeg-devel
mailing list