+#ifdef LISP_FEATURE_GENCGC
+#include "gencgc-alloc-region.h"
+void *
+gc_alloc_with_region(long nbytes,int page_type_flag, struct alloc_region *my_region,
+ int quick_p);
+static inline void *
+gc_general_alloc(long nbytes, int page_type_flag, int quick_p)
+{
+ struct alloc_region *my_region;
+ if (UNBOXED_PAGE_FLAG == page_type_flag) {
+ my_region = &unboxed_region;
+ } else if (BOXED_PAGE_FLAG & page_type_flag) {
+ my_region = &boxed_region;
+ } else {
+ lose("bad page type flag: %d", page_type_flag);
+ }
+ return gc_alloc_with_region(nbytes, page_type_flag, my_region, quick_p);
+}
+#else
+extern void *gc_general_alloc(long nbytes,int page_type_flag,int quick_p);
+#endif