Open main menu

Difference between revisions of "Compiling ScummVM/Visual Studio/Compiling Libraries"

→‎libmpeg2: Remove a define instead of changing the libmpeg2 code
m (Formatting)
(→‎libmpeg2: Remove a define instead of changing the libmpeg2 code)
Line 251: Line 251:
* #include "inttypes.h"
* #include "inttypes.h"
</source>
</source>
* Open config.h and comment out this line:
* Open config.h and comment out these lines:
<source lang="C">
#define ARCH_X86
</source>
<source lang="C">
<source lang="C">
#define restrict __restrict
#define restrict __restrict
Line 261: Line 264:


Now, we'll remove all the MMX optimization references from the files that have been added to the project. Perform the following:
Now, we'll remove all the MMX optimization references from the files that have been added to the project. Perform the following:
- Open idct.c, go to line 238 (inside mpeg2_idct_init) and change:
<source lang="C">
#ifdef ARCH_X86
</source>
to:
<source lang="C">
#if defined(ARCH_X86) && !defined(_MSC_VER)
</source>
-  Open motion_comp.c, go to line 36 (inside mpeg2_mc_init) and change:
<source lang="C">
#ifdef ARCH_X86
</source>
to:
<source lang="C">
#if defined(ARCH_X86) && !defined(_MSC_VER)
</source>
* Open slice.c, replace these lines:
* Open slice.c, replace these lines:
<source lang="C">
<source lang="C">
1,489

edits