include: Include x86intrin.h in msvcrt/intrin.h.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2021-03-15 16:07:38 +01:00 committed by Alexandre Julliard
parent 8ee4c1e21c
commit b18a48eb70
3 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,10 @@
#ifndef _INC_INTRIN
#define _INC_INTRIN
#if defined(__i386__) || defined(__x86_64__)
# include <x86intrin.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -164,15 +164,23 @@ _ACRTIMP char* __cdecl _itoa(int,char*,int);
_ACRTIMP errno_t __cdecl _itoa_s(int,char*,size_t,int);
_ACRTIMP char* __cdecl _ltoa(__msvcrt_long,char*,int);
_ACRTIMP errno_t __cdecl _ltoa_s(__msvcrt_long, char*, size_t, int);
#ifndef _lrotl
_ACRTIMP __msvcrt_ulong __cdecl _lrotl(__msvcrt_ulong,int);
#endif
#ifndef _lrotr
_ACRTIMP __msvcrt_ulong __cdecl _lrotr(__msvcrt_ulong,int);
#endif
_ACRTIMP void __cdecl _makepath(char*,const char*,const char*,const char*,const char*);
_ACRTIMP int __cdecl _makepath_s(char*,size_t,const char*,const char*,const char*,const char*);
_ACRTIMP size_t __cdecl _mbstrlen(const char*);
_ACRTIMP _onexit_t __cdecl _onexit(_onexit_t);
_ACRTIMP int __cdecl _putenv(const char*);
#ifndef _rotl
_ACRTIMP unsigned int __cdecl _rotl(unsigned int,int);
#endif
#ifndef _rotr
_ACRTIMP unsigned int __cdecl _rotr(unsigned int,int);
#endif
_ACRTIMP void __cdecl _searchenv(const char*,const char*,char*);
_ACRTIMP int __cdecl _set_error_mode(int);
_ACRTIMP void __cdecl _seterrormode(int);

View File

@ -1570,6 +1570,7 @@ static struct file *open_include_file( const struct makefile *make, struct incl_
if (pFile->type == INCL_SYSTEM && pFile->use_msvcrt)
{
if (!strcmp( pFile->name, "stdarg.h" )) return NULL;
if (!strcmp( pFile->name, "x86intrin.h" )) return NULL;
fprintf( stderr, "%s:%d: error: system header %s cannot be used with msvcrt\n",
pFile->included_by->file->name, pFile->included_line, pFile->name );
exit(1);