Skip to content

Commit

Permalink
Явно прописываем ARCH_X86, ARCH_X86_32, ARCH_X86_64 для всех компилят…
Browse files Browse the repository at this point in the history
…оров.
  • Loading branch information
v0lt committed Jul 8, 2024
1 parent 52cfa14 commit e81ca9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions src/ExtLib/ffmpeg/config.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#ifndef FFMPEG_CONFIG_H
#define FFMPEG_CONFIG_H

#define ARCH_X86 1
#ifdef ARCH_X86_64
#define ARCH_X86_32 0
#define ARCH_X86_64 1
#else
#define ARCH_X86_32 1
#define ARCH_X86_64 0
#endif

#define SWS_MAX_FILTER_SIZE 256
#ifdef __GNUC__
#define ARCH_X86 1
#define HAVE_INLINE_ASM 1
#define HAVE_AESNI 1
#define HAVE_AMD3DNOW 1
Expand Down Expand Up @@ -65,16 +73,12 @@

#ifdef ARCH_X86_64
#define BROKEN_RELOCATIONS 1
#define ARCH_X86_32 0
#define ARCH_X86_64 1
#define HAVE_FAST_64BIT 1
#define HAVE_FAST_CMOV 1
#define HAVE_MM_EMPTY 1
#define HAVE_XMM_CLOBBERS 1
#define CONFIG_PIC 1
#else
#define ARCH_X86_32 1
#define ARCH_X86_64 0
#define HAVE_FAST_64BIT 0
#define HAVE_FAST_CMOV 0
#define HAVE_MM_EMPTY 0
Expand Down Expand Up @@ -141,9 +145,6 @@
#define HAVE_SSSE3_INLINE 0
#define HAVE_XOP_INLINE 0
#define HAVE_I686_INLINE 0
#define ARCH_X86 0
#define ARCH_X86_32 0
#define ARCH_X86_64 0
#define HAVE_FAST_64BIT 0
#define HAVE_FAST_CMOV 0
#define HAVE_MM_EMPTY 0
Expand Down
4 changes: 2 additions & 2 deletions src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<PreprocessorDefinitions>_WINDOWS;WINDOWS;WINVER=0x0A00;_WIN32_WINNT=0x0A00;_WIN32_IE=0x0800;PSAPI_VERSION=1;_USE_MATH_DEFINES;__STDC_CONSTANT_MACROS;_HAS_STD_BYTE=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(NOMINMAX)'!='False'">NOMINMAX;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_WIN64;WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;ARCH_X86_32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_WIN64;WIN64;ARCH_X86_64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
<Lib>
Expand Down

0 comments on commit e81ca9b

Please sign in to comment.