From d3f4900a666ce017af73a92b13041a04f0675490 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 24 Jan 2011 19:50:01 +0000 Subject: [PATCH] [CRT] compile memcmp, abs and labs on MSVC, too. svn path=/branches/cmake-bringup/; revision=50479 --- lib/sdk/crt/math/abs.c | 2 -- lib/sdk/crt/math/labs.c | 2 -- lib/sdk/crt/mem/memcmp.c | 4 ---- 3 files changed, 8 deletions(-) diff --git a/lib/sdk/crt/math/abs.c b/lib/sdk/crt/math/abs.c index 4690af323a0..a18f19b2666 100644 --- a/lib/sdk/crt/math/abs.c +++ b/lib/sdk/crt/math/abs.c @@ -1,6 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ -#ifndef _MSC_VER /* * @implemented */ @@ -9,4 +8,3 @@ abs(int j) { return j<0 ? -j : j; } -#endif diff --git a/lib/sdk/crt/math/labs.c b/lib/sdk/crt/math/labs.c index dcfd8644655..b4fc33ec0a0 100644 --- a/lib/sdk/crt/math/labs.c +++ b/lib/sdk/crt/math/labs.c @@ -1,6 +1,5 @@ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ -#ifndef _MSC_VER /* * @implemented */ @@ -9,4 +8,3 @@ labs(long j) { return j<0 ? -j : j; } -#endif diff --git a/lib/sdk/crt/mem/memcmp.c b/lib/sdk/crt/mem/memcmp.c index e212e82c409..078238ebd20 100644 --- a/lib/sdk/crt/mem/memcmp.c +++ b/lib/sdk/crt/mem/memcmp.c @@ -2,8 +2,6 @@ * $Id$ */ -#ifndef _MSC_VER - #include int memcmp(const void *s1, const void *s2, size_t n) @@ -17,5 +15,3 @@ int memcmp(const void *s1, const void *s2, size_t n) } return 0; } - -#endif