From b2bacb6d108f716cdaebbb851e04b873a58da1b1 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Tue, 4 Feb 1992 23:09:48 +0000 Subject: [PATCH] Fix conditionalization of C_FUNC_PTR_IS_CLOSURE for GCC. --- v7/src/microcode/cmpintmd/hppa.h | 9 +++++---- v8/src/microcode/cmpintmd/hppa.h | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/v7/src/microcode/cmpintmd/hppa.h b/v7/src/microcode/cmpintmd/hppa.h index 43c39babc..5818e6169 100644 --- a/v7/src/microcode/cmpintmd/hppa.h +++ b/v7/src/microcode/cmpintmd/hppa.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/cmpintmd/hppa.h,v 1.29 1992/02/04 22:53:53 jinx Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/cmpintmd/hppa.h,v 1.30 1992/02/04 23:09:48 jinx Exp $ Copyright (c) 1989-92 Massachusetts Institute of Technology @@ -82,9 +82,10 @@ typedef unsigned short format_word; */ #ifdef __GNUC__ -# if (__GNUC__ < 2) -# define C_FUNC_PTR_IS_CLOSURE -# else + /* Under GCC version 1, function pointers are NOT closures. + We don't know about version 2 or later yet. + */ +# if (__GNUC__ >= 2) # include "Fix cmpint-hppa.h to define C_FUNC_PTR_IS_CLOSURE if necessary" # endif #else /* Assume HP C -- Test for HP-UX >= 8.0 */ diff --git a/v8/src/microcode/cmpintmd/hppa.h b/v8/src/microcode/cmpintmd/hppa.h index 3010be180..2cab3ad39 100644 --- a/v8/src/microcode/cmpintmd/hppa.h +++ b/v8/src/microcode/cmpintmd/hppa.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/cmpintmd/hppa.h,v 1.29 1992/02/04 22:53:53 jinx Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/microcode/cmpintmd/hppa.h,v 1.30 1992/02/04 23:09:48 jinx Exp $ Copyright (c) 1989-92 Massachusetts Institute of Technology @@ -82,9 +82,10 @@ typedef unsigned short format_word; */ #ifdef __GNUC__ -# if (__GNUC__ < 2) -# define C_FUNC_PTR_IS_CLOSURE -# else + /* Under GCC version 1, function pointers are NOT closures. + We don't know about version 2 or later yet. + */ +# if (__GNUC__ >= 2) # include "Fix cmpint-hppa.h to define C_FUNC_PTR_IS_CLOSURE if necessary" # endif #else /* Assume HP C -- Test for HP-UX >= 8.0 */ -- 2.25.1