Skip to content

Commit

Permalink
Переделка commit e81ca9b. По какой-то неведомой причине задание ARCH_…
Browse files Browse the repository at this point in the history
…X86_32 для x86 ломает процесс сборки.
  • Loading branch information
v0lt committed Jul 8, 2024
1 parent e81ca9b commit d79aa4a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions src/ExtLib/ffmpeg/config.h
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#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 HAVE_INLINE_ASM 1
Expand Down Expand Up @@ -71,14 +62,19 @@
#define HAVE_XOP_INLINE 1
#define HAVE_I686_INLINE 0

#define ARCH_X86 1
#ifdef ARCH_X86_64
#define ARCH_X86_32 0
#define ARCH_X86_64 1
#define BROKEN_RELOCATIONS 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 @@ -151,6 +147,14 @@
#define HAVE_XMM_CLOBBERS 0
#define CONFIG_PIC 0

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

#define av_restrict
#define __asm__ __asm
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<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;ARCH_X86_32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='Win32'">WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(Platform)'=='x64'">_WIN64;WIN64;ARCH_X86_64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<WarningLevel>Level3</WarningLevel>
</ClCompile>
Expand Down

0 comments on commit d79aa4a

Please sign in to comment.