mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
[FFmpeg] Add a preemptive stdlib.h include in our libavutil_visibility.h hackaround file
This commit is contained in:
parent
aeea23c315
commit
0aa6191fb7
1 changed files with 9 additions and 0 deletions
|
|
@ -9,6 +9,15 @@
|
|||
#ifndef MOZILLA_AVUTIL_VISIBILITY_H
|
||||
#define MOZILLA_AVUTIL_VISIBILITY_H
|
||||
|
||||
// We need to preemptively include <stdlib.h> before anyone[1] has a chance
|
||||
// to include <limits.h>. We do this to avoid a Linux clang build error, in
|
||||
// -ffreestanding mode, which happens when limits.h defines MB_LEN_MAX to some
|
||||
// value that is different from what stdlib.h expects. If we include stdlib.h
|
||||
// before limits.h, then they don't get a chance to interact badly.
|
||||
//
|
||||
// [1] (e.g. libavutil/common.h, which is indirectly included by log.h below.)
|
||||
#include <stdlib.h>
|
||||
|
||||
#pragma GCC visibility push(default)
|
||||
#include "libavutil/cpu.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue