mirror of
https://github.com/reactos/reactos.git
synced 2024-09-23 02:56:00 +00:00
0fab7e8671
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) svn path=/branches/cmake-bringup/; revision=50494
16 lines
207 B
C
16 lines
207 B
C
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning(disable: 4164)
|
|
#pragma function(abs)
|
|
#endif
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int
|
|
abs(int j)
|
|
{
|
|
return j<0 ? -j : j;
|
|
}
|