diff options
author | kaleb <empty> | 1994-07-25 13:48:35 +0000 |
---|---|---|
committer | kaleb <empty> | 1994-07-25 13:48:35 +0000 |
commit | f223a5957a501dedddff142d1420fcd8a02e4ca5 (patch) | |
tree | 5ef237f89d8e56b7dea516e9e309a65e38436aae /xc/lib/font/fontfile | |
parent | 68ea99f23a58344e94845032877c46e3f9f903d5 (diff) |
XBUG 6920, define _XOPEN_SOURCE to get prototype for hypot() on some
systems. Systems that don't need the define don't care if there is an
extraneous define.
Diffstat (limited to 'xc/lib/font/fontfile')
-rw-r--r-- | xc/lib/font/fontfile/fontscale.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xc/lib/font/fontfile/fontscale.c b/xc/lib/font/fontfile/fontscale.c index bde2e3da7..bdb84d877 100644 --- a/xc/lib/font/fontfile/fontscale.c +++ b/xc/lib/font/fontfile/fontscale.c @@ -1,4 +1,4 @@ -/* $XConsortium: fontscale.c,v 1.12 94/02/08 12:30:05 gildea Exp $ */ +/* $XConsortium: fontscale.c,v 1.13 94/04/17 20:17:07 gildea Exp $ */ /* @@ -32,7 +32,13 @@ in this Software without prior written authorization from the X Consortium. */ #include "fntfilst.h" -#include "math.h" +#ifdef _XOPEN_SOURCE +#include <math.h> +#else +#define _XOPEN_SOURCE /* to get prototype for hypot on some systems */ +#include <math.h> +#undef _XOPEN_SOURCE +#endif Bool FontFileAddScaledInstance (entry, vals, pFont, bitmapName) |