summaryrefslogtreecommitdiff
path: root/mi/mifpoly.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:49:22 +0000
commitd568221710959cf7d783e6ff0fb80fb43a231124 (patch)
tree8d6f039393294c6ffac8533639afdebe5d68bfc1 /mi/mifpoly.h
parent9508a382f8a9f241dab097d921b6d290c1c3a776 (diff)
Diffstat (limited to 'mi/mifpoly.h')
-rw-r--r--mi/mifpoly.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/mi/mifpoly.h b/mi/mifpoly.h
index bb923e2b6..837cf7b20 100644
--- a/mi/mifpoly.h
+++ b/mi/mifpoly.h
@@ -45,6 +45,10 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
******************************************************************/
+/* $XFree86: xc/programs/Xserver/mi/mifpoly.h,v 1.4 2001/12/14 20:00:22 dawes Exp $ */
+
+#ifndef __MIFPOLY_H__
+#define __MIFPOLY_H__
#define EPSILON 0.000001
#define ISEQUAL(a,b) (Fabs((a) - (b)) <= EPSILON)
@@ -68,8 +72,7 @@ SOFTWARE.
#define ICEIL(x) ((int)ceil(x))
#else
#ifdef __GNUC__
-static __inline int ICEIL(x)
- double x;
+static __inline int ICEIL(double x)
{
int _cTmp = x;
return ((x == _cTmp) || (x < 0.0)) ? _cTmp : _cTmp+1;
@@ -95,7 +98,6 @@ typedef struct _SppArc {
/* mifpolycon.c */
extern void miFillSppPoly(
-#if NeedFunctionPrototypes
DrawablePtr /*dst*/,
GCPtr /*pgc*/,
int /*count*/,
@@ -104,5 +106,6 @@ extern void miFillSppPoly(
int /*yTrans*/,
double /*xFtrans*/,
double /*yFtrans*/
-#endif
);
+
+#endif /* __MIFPOLY_H__ */