Author: tkreuzer
Date: Tue Jan 25 20:48:56 2011
New Revision: 50494
URL:
http://svn.reactos.org/svn/reactos?rev=50494&view=rev
Log:
[CRT]
On MSVC mark abs, labs and strcmp as intrinsics (needed when compiling with /O2+) and
disable a warning that they are not intrinsics (when compiled with /O1)
Modified:
branches/cmake-bringup/lib/sdk/crt/math/abs.c
branches/cmake-bringup/lib/sdk/crt/math/labs.c
branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c
branches/cmake-bringup/lib/sdk/crt/string/scanf.h
branches/cmake-bringup/lib/sdk/crt/string/strset.c
Modified: branches/cmake-bringup/lib/sdk/crt/math/abs.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/math/…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/math/abs.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/math/abs.c [iso-8859-1] Tue Jan 25 20:48:56 2011
@@ -1,4 +1,9 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+
+#ifdef _MSC_VER
+#pragma warning(disable: 4164)
+#pragma function(abs)
+#endif
/*
* @implemented
Modified: branches/cmake-bringup/lib/sdk/crt/math/labs.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/math/…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/math/labs.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/math/labs.c [iso-8859-1] Tue Jan 25 20:48:56 2011
@@ -1,4 +1,9 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
+
+#ifdef _MSC_VER
+#pragma warning(disable: 4164)
+#pragma function(abs)
+#endif
/*
* @implemented
Modified: branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/mem/m…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/mem/memcmp.c [iso-8859-1] Tue Jan 25 20:48:56 2011
@@ -3,6 +3,11 @@
*/
#include <string.h>
+
+#ifdef _MSC_VER
+#pragma warning(disable: 4164)
+#pragma function(memcmp)
+#endif
int memcmp(const void *s1, const void *s2, size_t n)
{
Modified: branches/cmake-bringup/lib/sdk/crt/string/scanf.h
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/strin…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/string/scanf.h [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/string/scanf.h [iso-8859-1] Tue Jan 25 20:48:56
2011
@@ -460,7 +460,7 @@
if ((*(format - 1)) < *(format + 1))
RtlSetBits(&bitMask, *(format - 1) +1 , *(format + 1) - *(format - 1));
else
- RtlSetBits(&bitMask, *(format + 1) , *(format - 1) - *(format + 1));
+ RtlSetBits(&bitMask, *(format + 1) , *(format - 1) - *(format + 1));
format++;
} else
RtlSetBits(&bitMask, *format, 1);
Modified: branches/cmake-bringup/lib/sdk/crt/string/strset.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/sdk/crt/strin…
==============================================================================
--- branches/cmake-bringup/lib/sdk/crt/string/strset.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/sdk/crt/string/strset.c [iso-8859-1] Tue Jan 25 20:48:56
2011
@@ -11,6 +11,7 @@
#if defined(__GNUC__) && !defined(__clang__)
#define __int64 long long
#elif defined(_MSC_VER)
+#pragma warning(disable: 4164)
#pragma function(_strset)
#endif