Fix conditionalization of C_FUNC_PTR_IS_CLOSURE for GCC.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 4 Feb 1992 23:09:48 +0000 (23:09 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Tue, 4 Feb 1992 23:09:48 +0000 (23:09 +0000)
v7/src/microcode/cmpintmd/hppa.h
v8/src/microcode/cmpintmd/hppa.h

index 43c39babc6291c3153068a7916b02047525d5a46..5818e61691b5b8a1a7fc7cd2f0489532729b8513 100644 (file)
@@ -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 */
index 3010be180607e117fec1ae952ba9b685d30d961f..2cab3ad39d9a80bca67896a4bbbe42b49ba64260 100644 (file)
@@ -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 */