Mercurial > ms-int-types
changeset 8:8528f97c3731
Added INLINE_IMAXDIV define switch.
If INLINE_IMAXDIV is defined imaxdiv() have static modifier. If not - it is _inline.
author | ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde |
---|---|
date | Wed, 13 Dec 2006 13:20:57 +0000 |
parents | dfeb4c5e9077 |
children | 62d255c0ba50 |
files | inttypes.h |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;