X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput.h;h=bcd093284fdf72538f5cb96c7d28bc2cb61b407d;hb=027eba771a7ef9d25e97f0026d6469ea34c06523;hp=00e5b23db6ac9bc8dedc118b2b1084999278c4b0;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/output.h b/src/output.h index 00e5b23db6..bcd093284f 100644 --- a/src/output.h +++ b/src/output.h @@ -29,28 +29,6 @@ struct rect int x2, y2; /* Lower right, not part of the rectangle. */ }; -#if __GNUC__ > 1 && defined(__OPTIMIZE__) -extern inline int width (rect r) __attribute__ ((const)); -extern inline int height (rect r) __attribute__ ((const)); - -extern inline int -width (rect r) -{ - return r.x2 - r.x1 + 1; -} - -extern inline int -height (rect r) -{ - return r.y2 - r.y1 + 1; -} -#else /* !__GNUC__ */ -#define width(R) \ - ((R).x2 - (R).x1 + 1) -#define height(R) \ - ((R).y2 - (R).y1 + 1) -#endif /* !__GNUC__ */ - /* Color descriptor. */ struct color {