# HG changeset patch # User ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde # Date 1166016057 0 # Node ID 8528f97c3731e720f2b3369e29b6fef061bb32d4 # Parent dfeb4c5e9077f848382be55ba905d275054cee65 Added INLINE_IMAXDIV define switch. If INLINE_IMAXDIV is defined imaxdiv() have static modifier. If not - it is _inline. diff --git a/inttypes.h b/inttypes.h --- a/inttypes.h +++ b/inttypes.h @@ -268,7 +268,12 @@ typedef struct { // This is modified version of div() function from Microsoft's div.c found // in %MSVC.NET%\crt\src\div.c -_inline imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) +#ifdef INLINE_IMAXDIV // [ +_inline +#else // INLINE_IMAXDIV ][ +static +#endif // INLINE_IMAXDIV ] +imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) { imaxdiv_t result;