about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--misc/sys/cdefs.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b893e78931..c06aeff89b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-15  Ben Collins  <bcollins@debian.org>
+
+	* misc/sys/cdefs.h: Fix thinko in checks for flexarr macros.
+	Patch by Akim Demaille <akim@epita.fr> in Debian bug report.
+
 2000-12-14  H.J. Lu  <hjl@gnu.org>
 
 	* sysdeps/ieee754/flt-32/s_sincosf.c (__sincosf): The exponent
diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h
index 3d6a20bb52..f44440b2b7 100644
--- a/misc/sys/cdefs.h
+++ b/misc/sys/cdefs.h
@@ -101,7 +101,7 @@
 # ifdef __GNUC__
 #  define __flexarr	[0]
 # else
-#  ifdef __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
+#  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
 #   define __flexarr	[]
 #  else
 /* Some other non-C99 compiler.  Approximate with [1].  */