diff 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
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;