summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-08-26 21:53:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-08-26 21:53:44 +0000
commitd70bf0dd35544eba874007a9edc3ec08e047ef97 (patch)
tree2fd61e491850b15e3e2e07e3d55f58a2540d69f4 /src/interfaces
parent662f6a557cbcaf977cdd8b58bc627ac2a8aa82d5 (diff)
downloadpostgresql-d70bf0dd35544eba874007a9edc3ec08e047ef97.tar.gz
Rename BITSPERBYTE to BITS_PER_BYTE to avoid conflict with <values.h>
on some platforms.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/preproc.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y
index 0d12a10b8e..b4a9d77756 100644
--- a/src/interfaces/ecpg/preproc/preproc.y
+++ b/src/interfaces/ecpg/preproc/preproc.y
@@ -3116,10 +3116,10 @@ Bit: bit '(' Iconst ')'
sprintf(errortext,"length for type '%s' must be at least 1",$1);
mmerror(ET_ERROR, errortext);
}
- else if (atol($3) > (MaxAttrSize * BITSPERBYTE))
+ else if (atol($3) > (MaxAttrSize * BITS_PER_BYTE))
{
sprintf(errortext, "length for type '%s' cannot exceed %d", $1,
- (MaxAttrSize * BITSPERBYTE));
+ (MaxAttrSize * BITS_PER_BYTE));
mmerror(ET_ERROR, errortext);
}
}