comparison inttypes.h @ 11:bfc13f31112f

Make _inline modifier for imaxdiv default option. Use STATIC_IMAXDIV to make it static.
author ipse.c99@d525d15b-5824-0410-80a3-6185d19c2cde
date Wed, 13 Dec 2006 13:53:11 +0000
parents fed29a68d73f
children f831bbea3401
comparison
equal deleted inserted replaced
10:fed29a68d73f 11:bfc13f31112f
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 #ifdef INLINE_IMAXDIV // [ 271 #ifdef STATIC_IMAXDIV // [
272 static
273 #else // STATIC_IMAXDIV ][
272 _inline 274 _inline
273 #else // INLINE_IMAXDIV ][ 275 #endif // STATIC_IMAXDIV ]
274 static
275 #endif // INLINE_IMAXDIV ]
276 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) 276 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
277 { 277 {
278 imaxdiv_t result; 278 imaxdiv_t result;
279 279
280 result.quot = numer / denom; 280 result.quot = numer / denom;