Skip to content

Commit

Permalink
Added INLINE_IMAXDIV define switch.
Browse files Browse the repository at this point in the history
If INLINE_IMAXDIV is defined imaxdiv() have static modifier. If not - it is _inline.
  • Loading branch information
chemeris committed Dec 13, 2006
1 parent 0e31767 commit b478eda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inttypes.h
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b478eda

Please sign in to comment.