compile memcmp, abs and labs on MSVC, too.

svn path=/branches/cmake-bringup/; revision=50479
This commit is contained in:
Timo Kreuzer 2011-01-24 19:50:01 +00:00
parent 0d54e35b94
commit d3f4900a66
3 changed files with 0 additions and 8 deletions

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#ifndef _MSC_VER
/* /*
* @implemented * @implemented
*/ */
@ -9,4 +8,3 @@ abs(int j)
{ {
return j<0 ? -j : j; return j<0 ? -j : j;
} }
#endif

View file

@ -1,6 +1,5 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#ifndef _MSC_VER
/* /*
* @implemented * @implemented
*/ */
@ -9,4 +8,3 @@ labs(long j)
{ {
return j<0 ? -j : j; return j<0 ? -j : j;
} }
#endif

View file

@ -2,8 +2,6 @@
* $Id$ * $Id$
*/ */
#ifndef _MSC_VER
#include <string.h> #include <string.h>
int memcmp(const void *s1, const void *s2, size_t n) 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; return 0;
} }
#endif