summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/include/stdlib.h')
-rw-r--r--winsup/mingw/include/stdlib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h
index ae36ebe0c..014bc0a27 100644
--- a/winsup/mingw/include/stdlib.h
+++ b/winsup/mingw/include/stdlib.h
@@ -503,7 +503,7 @@ _CRTIMP char* __cdecl __MINGW_NOTHROW gcvt (double, int, char*);
/* C99 name for _exit */
void __cdecl __MINGW_NOTHROW _Exit(int) __MINGW_ATTRIB_NORETURN;
-#ifndef __STRICT_ANSI__ /* inline using non-ansi functions */
+#ifndef __NO_INLINE__
__CRT_INLINE void __cdecl __MINGW_NOTHROW _Exit(int __status)
{ _exit (__status); }
#endif
@@ -513,8 +513,10 @@ typedef struct { long long quot, rem; } lldiv_t;
lldiv_t __cdecl __MINGW_NOTHROW lldiv (long long, long long) __MINGW_ATTRIB_CONST;
long long __cdecl __MINGW_NOTHROW llabs(long long);
+#ifndef __NO_INLINE__
__CRT_INLINE long long __cdecl __MINGW_NOTHROW llabs(long long _j)
{return (_j >= 0 ? _j : -_j);}
+#endif
long long __cdecl __MINGW_NOTHROW strtoll (const char* __restrict__, char** __restrict, int);
unsigned long long __cdecl __MINGW_NOTHROW strtoull (const char* __restrict__, char** __restrict__, int);
@@ -530,6 +532,7 @@ wchar_t* __cdecl __MINGW_NOTHROW lltow (long long, wchar_t *, int);
wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long, wchar_t *, int);
/* inline using non-ansi functions */
+#ifndef __NO_INLINE__
__CRT_INLINE long long __cdecl __MINGW_NOTHROW atoll (const char * _c)
{ return _atoi64 (_c); }
__CRT_INLINE char* __cdecl __MINGW_NOTHROW lltoa (long long _n, char * _c, int _i)
@@ -542,6 +545,7 @@ __CRT_INLINE wchar_t* __cdecl __MINGW_NOTHROW lltow (long long _n, wchar_t * _w
{ return _i64tow (_n, _w, _i); }
__CRT_INLINE wchar_t* __cdecl __MINGW_NOTHROW ulltow (unsigned long long _n, wchar_t * _w, int _i)
{ return _ui64tow (_n, _w, _i); }
+#endif /* (__NO_INLINE__) */
#endif /* (__STRICT_ANSI__) */
#endif /* __MSVCRT__ */