Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2969c01

Browse files
committed
Remove gcc-only macro definition
1 parent063c0f6 commit2969c01

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

‎src/backend/utils/mb/conv.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* WIN1250 client encoding support contributed by Pavel Behal
77
* SJIS UDC (NEC selection IBM kanji) support contributed by Eiji Tokuya
88
*
9-
* $Id: conv.c,v 1.18 2000/10/12 06:06:50 ishii Exp $
9+
* $Id: conv.c,v 1.19 2000/10/27 02:23:51 ishii Exp $
1010
*
1111
*
1212
*/
@@ -16,6 +16,18 @@
1616

1717
#include"mb/pg_wchar.h"
1818

19+
/*
20+
* XXX dummy elog() function for frontend only. Note that elog would
21+
* never be called from frontend, but to avoid the linking errors we
22+
* have to do it anyway. In the future, we should consider reorganizing
23+
* sources in this directory to avoid this kind of ugliness...
24+
*/
25+
26+
#ifdefFRONTEND
27+
staticvoid
28+
elog(intlev,constchar*fmt, ...) {}
29+
#endif
30+
1931
/*
2032
* for Unicode (UTF-8) support
2133
*/

‎src/include/mb/pg_wchar.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: pg_wchar.h,v 1.20 2000/10/25 19:44:43 tgl Exp $ */
1+
/* $Id: pg_wchar.h,v 1.21 2000/10/27 02:21:15 ishii Exp $ */
22

33
#ifndefPG_WCHAR_H
44
#definePG_WCHAR_H
@@ -7,9 +7,9 @@
77
#include<sys/types.h>
88

99
#ifdefFRONTEND
10-
#defineelog(X...)
1110
#undef palloc
1211
#definepalloc malloc
12+
# undef pfree
1313
#definepfree free
1414
#endif
1515

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp