If we're going to offer a default definition of PQmblen,
it probably ought to actually work.
This commit is contained in:
parent
a4fd4cdc0d
commit
fe91cd41ea
@ -9,7 +9,7 @@
|
|||||||
* didn't really belong there.
|
* didn't really belong there.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.14 1998/10/06 03:02:25 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.15 1998/10/06 14:16:50 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -515,13 +515,12 @@ PQmblen(unsigned char *s)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef WIN32
|
/* Provide a default definition in case someone calls it anyway */
|
||||||
int
|
int
|
||||||
PQmblen(unsigned char *s)
|
PQmblen(unsigned char *s)
|
||||||
{
|
{
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
#endif /* WIN32 */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* MULTIBYTE */
|
#endif /* MULTIBYTE */
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: libpq-fe.h,v 1.44 1998/10/01 01:40:23 tgl Exp $
|
* $Id: libpq-fe.h,v 1.45 1998/10/06 14:16:49 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -283,9 +283,8 @@ extern "C"
|
|||||||
int width); /* width of column, if
|
int width); /* width of column, if
|
||||||
* 0, use variable width */
|
* 0, use variable width */
|
||||||
|
|
||||||
#ifdef MULTIBYTE
|
/* Determine length of multibyte encoded char at *s */
|
||||||
extern int PQmblen(unsigned char *s);
|
extern int PQmblen(unsigned char *s);
|
||||||
#endif
|
|
||||||
|
|
||||||
/* === in fe-lobj.c === */
|
/* === in fe-lobj.c === */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user