- Guard MSVC's intrinsics with #ifdefs. Proper solution is to move those functions to intrin.h once host tools including target headers problem is solved. libcntpr now builds with MSVC8.

svn path=/trunk/; revision=30728
This commit is contained in:
Aleksey Bragin 2007-11-24 21:28:11 +00:00
parent 9e8530d01a
commit 0b0fb5b032
6 changed files with 34 additions and 0 deletions

View file

@ -4,8 +4,10 @@
/*
* @implemented
*/
#ifndef _MSC_VER
int
abs(int j)
{
return j<0 ? -j : j;
}
#endif

View file

@ -4,8 +4,10 @@
/*
* @implemented
*/
#ifndef _MSC_VER
long
labs(long j)
{
return j<0 ? -j : j;
}
#endif

View file

@ -3,6 +3,24 @@
#undef _pctype
/* MS's CRT header defines all that, and we actually implement that */
#undef iswalnum
#undef __isascii
#undef iswascii
#undef __iscsym
#undef __iscsymf
#undef iswalpha
#undef iswcntrl
#undef iswdigit
#undef iswgraph
#undef iswprint
#undef iswpunct
#undef iswlower
#undef iswupper
#undef iswspace
#undef iswxdigit
#undef __toascii
#define upalpha ('A' - 'a')

View file

@ -6,6 +6,9 @@
#define NDEBUG
#include <internal/debug.h>
#ifndef TRACE
#define TRACE DPRINT
#endif
#define WARN DPRINT1
@ -26,6 +29,11 @@ static int char2digit(char c, int base) {
#undef WIDE_SCANF
#undef CONSOLE
#define STRING 1
#ifdef _MSC_VER
#define debugstr_a(x) x
#endif
#include "wine/scanf.h"
int sscanf(const char *str, const char *format, ...)

View file

@ -30,6 +30,7 @@ char* _strnset(char* szToFill, int szFill, size_t sizeMaxFill)
/*
* @implemented
*/
#ifndef _MSC_VER
char* _strset(char* szToFill, int szFill)
{
char *t = szToFill;
@ -41,3 +42,4 @@ char* _strset(char* szToFill, int szFill)
}
return t;
}
#endif

View file

@ -30,6 +30,7 @@ wchar_t* _wcsnset (wchar_t* wsToFill, wchar_t wcFill, size_t sizeMaxFill)
/*
* @implemented
*/
#ifndef _MSC_VER
wchar_t* _wcsset (wchar_t* wsToFill, wchar_t wcFill)
{
wchar_t *t = wsToFill;
@ -41,3 +42,4 @@ wchar_t* _wcsset (wchar_t* wsToFill, wchar_t wcFill)
}
return t;
}
#endif