mingw-w64/mingw-w64-crt/math/abs64.c
David Wohlferd 600fd551f6 Fix missing prototypes
clog10.c, clog10f.c, clog10l.c:
  - The prototypes for the functions created in these files are
    protected by #ifdef _GNU_SOURCE.  Since we should always build
    the .c file, we need to add the define so we can find the
    prototype.
gai_strerrorA.c:
  - wcstombs() is in stdlib.
abs64.c:
  - llabs() is in stdlib.h.
_vscprintf_p.c, _vscwprintf_p.c, _vswprintf_p.c:
  - _vscprintf_p_l, _vscwprintf_p_l & _vswprintf_p_l prototypes are
    protected by #if.  Add the define so we can find them.

Signed-off-by: David Wohlferd <dw@LimeGreenSocks.com>
2016-08-16 03:17:36 -07:00

7 lines
118 B
C

#include <intrin.h>
#include <stdlib.h>
__MINGW_EXTENSION __int64 __cdecl _abs64(__int64 x) {
return llabs(x);
}