Fixed floating point rounding problem
[pspp-builds.git] / src / output.h
index 00e5b23db6ac9bc8dedc118b2b1084999278c4b0..98f8d4f122368d82828c99f8d703f2051f460a1b 100644 (file)
@@ -29,6 +29,7 @@ struct rect
     int x2, y2;                        /* Lower right, not part of the rectangle. */
   };
 
+#if 0
 #if __GNUC__ > 1 && defined(__OPTIMIZE__)
 extern inline int width (rect r) __attribute__ ((const));
 extern inline int height (rect r) __attribute__ ((const));
@@ -45,11 +46,13 @@ height (rect r)
   return r.y2 - r.y1 + 1;
 }
 #else /* !__GNUC__ */
+/* Be carefull of these ... they use the argument more than once. */
 #define width(R)                               \
        ((R).x2 - (R).x1 + 1)
 #define height(R)                              \
        ((R).y2 - (R).y1 + 1)
 #endif /* !__GNUC__ */
+#endif
 
 /* Color descriptor. */
 struct color