mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 18:29:45 +00:00
[CRT]
- Add __readcr4 to crt to compensate for MSVC bug - Compile strnset with MSVC svn path=/branches/cmake-bringup/; revision=49669
This commit is contained in:
parent
e11826a832
commit
f90a97e5a6
4 changed files with 17 additions and 8 deletions
|
@ -336,6 +336,7 @@ list(APPEND CRT_SOURCE
|
|||
mem/i386/memchr_asm.s
|
||||
mem/i386/memmove_asm.s
|
||||
mem/i386/memset_asm.s
|
||||
misc/i386/readcr4.S
|
||||
string/i386/strcat_asm.s
|
||||
string/i386/strchr_asm.s
|
||||
string/i386/strcmp_asm.s
|
||||
|
|
12
lib/sdk/crt/misc/i386/readcr4.S
Normal file
12
lib/sdk/crt/misc/i386/readcr4.S
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
#include <asm.inc>
|
||||
|
||||
.code
|
||||
|
||||
PUBLIC ___readcr4
|
||||
___readcr4:
|
||||
mov eax, cr4
|
||||
ret
|
||||
|
||||
END
|
||||
|
|
@ -8,10 +8,10 @@
|
|||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#ifndef _MSC_VER
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#define __int64 long long
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma function(_strset)
|
||||
#endif
|
||||
|
||||
#ifdef _WIN64
|
||||
|
@ -52,4 +52,3 @@ char* _strset(char* szToFill, int szFill)
|
|||
return t;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue