Commit a69c5fc8 authored by Marc G. Fournier's avatar Marc G. Fournier

Add ccsym to tools to determine OS/compiler specific symbols

Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what
NetBSD is referred to as...someone?)
parent f2b98c46
......@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.8 1996/12/28 02:12:17 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.9 1997/04/13 17:09:45 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -137,7 +137,7 @@ ltoa(int32 l, char *a)
int
ftoa(double value, char *ascii, int width, int prec1, char format)
{
#if defined(BSD44_derived) || \
#if defined(__FreeBSD__) || \
defined(bsdi) || \
defined(bsdi_2_1)
char out[256];
......
#!/bin/sh
/bin/cat >tmp.c <<EOF
extern int foo;
EOF
for i in `cc -v -c tmp.c 2>&1`
do
case "$i" in
-D*) echo "$i" | /usr/bin/sed 's/^-D//';;
-A*) /bin/test "2.7.2.1" && echo "$i" | /usr/bin/sed 's/^-A\(.*\)(\(.*\))/\1=\2/';;
esac
done
/bin/rm -f try.c
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment