mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Remove gcc-only macro definition
This commit is contained in:
parent
063c0f6bea
commit
2969c01d55
@ -6,7 +6,7 @@
|
|||||||
* WIN1250 client encoding support contributed by Pavel Behal
|
* WIN1250 client encoding support contributed by Pavel Behal
|
||||||
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
|
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
|
||||||
*
|
*
|
||||||
* $Id: conv.c,v 1.18 2000/10/12 06:06:50 ishii Exp $
|
* $Id: conv.c,v 1.19 2000/10/27 02:23:51 ishii Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -16,6 +16,18 @@
|
|||||||
|
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* XXX dummy elog() function for frontend only. Note that elog would
|
||||||
|
* never be called from frontend, but to avoid the linking errors we
|
||||||
|
* have to do it anyway. In the future, we should consider reorganizing
|
||||||
|
* sources in this directory to avoid this kind of ugliness...
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef FRONTEND
|
||||||
|
static void
|
||||||
|
elog(int lev, const char *fmt, ...) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* for Unicode (UTF-8) support
|
* for Unicode (UTF-8) support
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: pg_wchar.h,v 1.20 2000/10/25 19:44:43 tgl Exp $ */
|
/* $Id: pg_wchar.h,v 1.21 2000/10/27 02:21:15 ishii Exp $ */
|
||||||
|
|
||||||
#ifndef PG_WCHAR_H
|
#ifndef PG_WCHAR_H
|
||||||
#define PG_WCHAR_H
|
#define PG_WCHAR_H
|
||||||
@ -7,9 +7,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#ifdef FRONTEND
|
#ifdef FRONTEND
|
||||||
#define elog(X...)
|
|
||||||
#undef palloc
|
#undef palloc
|
||||||
#define palloc malloc
|
#define palloc malloc
|
||||||
|
# undef pfree
|
||||||
#define pfree free
|
#define pfree free
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user