* Conflicting definitions of alloc_region, both useless.
* Remove both definitions from visibility in print.c, and add an
explicit error in gencgc-alloc-region.h to help diagnosis if this
ever crops up again.
#include "gc.h"
+#ifndef LISP_FEATURE_GENCGC
+#error "gencgc-alloc-region.h included, but LISP_FEATURE_GENCGC not defined"
+#endif
+
/* Abstract out the data for an allocation region allowing a single
* routine to be used for allocation and closing. */
struct alloc_region {
#include "monitor.h"
#include "vars.h"
#include "os.h"
+#ifdef LISP_FEATURE_GENCGC
#include "gencgc-alloc-region.h" /* genesis/thread.h needs this */
+#endif
#include "genesis/static-symbols.h"
#include "thread.h" /* genesis/primitive-objects.h needs this */
#include "genesis/primitive-objects.h"
#include "os.h"
#ifdef LISP_FEATURE_GENCGC
#include "gencgc-alloc-region.h"
-#else
-struct alloc_region { };
#endif
#include "genesis/symbol.h"
#include "genesis/static-symbols.h"