Skip to content

Commit 86459b3

Browse files
committed
Wrap inline function definitions in #ifndef FRONTEND
This should fix failures under certain compilers (a well known limitation). My oversight in e27f4ee. Discussion: https://postgr.es/m/3029088.1648145389@sss.pgh.pa.us
1 parent 75b1521 commit 86459b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/access/htup_details.h

+2
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ extern size_t varsize_any(void *p);
733733
extern HeapTuple heap_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc);
734734
extern MinimalTuple minimal_expand_tuple(HeapTuple sourceTuple, TupleDesc tupleDesc);
735735

736+
#ifndef FRONTEND
736737
/*
737738
* fastgetattr
738739
* Fetch a user attribute's value as a Datum (might be either a
@@ -801,5 +802,6 @@ heap_getattr(HeapTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull)
801802
else
802803
return heap_getsysattr(tup, attnum, tupleDesc, isnull);
803804
}
805+
#endif /* FRONTEND */
804806

805807
#endif /* HTUP_DETAILS_H */

0 commit comments

Comments
 (0)