comparison inttypes.h @ 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 fed29a68d73f
comparison
equal deleted inserted replaced
7:dfeb4c5e9077 8:8528f97c3731
266 266
267 // 7.8.2.2 The imaxdiv function 267 // 7.8.2.2 The imaxdiv function
268 268
269 // This is modified version of div() function from Microsoft's div.c found 269 // This is modified version of div() function from Microsoft's div.c found
270 // in %MSVC.NET%\crt\src\div.c 270 // in %MSVC.NET%\crt\src\div.c
271 _inline imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) 271 #ifdef INLINE_IMAXDIV // [
272 _inline
273 #else // INLINE_IMAXDIV ][
274 static
275 #endif // INLINE_IMAXDIV ]
276 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
272 { 277 {
273 imaxdiv_t result; 278 imaxdiv_t result;
274 279
275 result.quot = numer / denom; 280 result.quot = numer / denom;
276 result.rem = numer % denom; 281 result.rem = numer % denom;