diff options
author | Levi Zim <rsworktech@outlook.com> | 2025-08-19 11:16:45 +0800 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2025-08-26 15:08:52 +0000 |
commit | c2d17c4db88c4ca11d264d15efde66233733ed51 (patch) | |
tree | cf8046eba042265aaa92be852cf275a5ba2a6f55 | |
parent | 70a6ad6c743e8f36921755cacff2726825021b8a (diff) | |
download | ffmpeg-c2d17c4db88c4ca11d264d15efde66233733ed51.tar.gz |
avutil/riscv: avoid redefinition of _GNU_SOURCE
Add #ifndef to avoid potential redefinition of _GNU_SOURCE macro.
Signed-off-by: Levi Zim <rsworktech@outlook.com>
-rw-r--r-- | libavutil/riscv/cpu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavutil/riscv/cpu.c b/libavutil/riscv/cpu.c index 5d7673ad11..379703651a 100644 --- a/libavutil/riscv/cpu.c +++ b/libavutil/riscv/cpu.c @@ -18,7 +18,9 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include "libavutil/cpu.h" #include "libavutil/cpu_internal.h" #include "libavutil/macros.h" |