mirror of
https://github.com/postgres/postgres.git
synced 2025-08-14 02:22:38 +03:00
Back-port recent ppport.h fix to 8.0 branch.
This commit is contained in:
@@ -221,6 +221,7 @@ __DATA__
|
|||||||
/* Replace: 0 */
|
/* Replace: 0 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PERL_UNUSED_DECL
|
||||||
#ifdef HASATTRIBUTE
|
#ifdef HASATTRIBUTE
|
||||||
#if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
|
#if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
|
||||||
#define PERL_UNUSED_DECL
|
#define PERL_UNUSED_DECL
|
||||||
@@ -230,6 +231,7 @@ __DATA__
|
|||||||
#else
|
#else
|
||||||
#define PERL_UNUSED_DECL
|
#define PERL_UNUSED_DECL
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef dNOOP
|
#ifndef dNOOP
|
||||||
#define NOOP (void)0
|
#define NOOP (void)0
|
||||||
@@ -351,7 +353,6 @@ newRV_noinc(SV *sv)
|
|||||||
SvREFCNT_dec(sv);
|
SvREFCNT_dec(sv);
|
||||||
return nsv;
|
return nsv;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#define newRV_noinc(sv) \
|
#define newRV_noinc(sv) \
|
||||||
(PL_Sv=(SV*)newRV(sv), SvREFCNT_dec(sv), (SV*)PL_Sv)
|
(PL_Sv=(SV*)newRV(sv), SvREFCNT_dec(sv), (SV*)PL_Sv)
|
||||||
@@ -404,8 +405,8 @@ SV *sv;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
newSVOP(OP_CONST, 0, newSVpv(name, 0)),
|
newSVOP(OP_CONST, 0, newSVpv(name, 0)),
|
||||||
newSVOP(OP_CONST, 0, &PL_sv_no), /* SvPV(&PL_sv_no) == ""
|
newSVOP(OP_CONST, 0, &PL_sv_no), /* SvPV(&PL_sv_no) == "" --
|
||||||
* -- GMB */
|
* GMB */
|
||||||
newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))
|
newSTATEOP(0, Nullch, newSVOP(OP_CONST, 0, sv))
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -484,7 +485,6 @@ SV *sv;
|
|||||||
#define aMY_CXT my_cxtp
|
#define aMY_CXT my_cxtp
|
||||||
#define aMY_CXT_ aMY_CXT,
|
#define aMY_CXT_ aMY_CXT,
|
||||||
#define _aMY_CXT ,aMY_CXT
|
#define _aMY_CXT ,aMY_CXT
|
||||||
|
|
||||||
#else /* single interpreter */
|
#else /* single interpreter */
|
||||||
|
|
||||||
#define START_MY_CXT static my_cxt_t my_cxt;
|
#define START_MY_CXT static my_cxt_t my_cxt;
|
||||||
|
Reference in New Issue
Block a user