svn commit: r230278 - head/include

Ed Schouten ed at FreeBSD.org
Tue Jan 17 20:22:10 UTC 2012


Author: ed
Date: Tue Jan 17 20:22:10 2012
New Revision: 230278
URL: http://svn.freebsd.org/changeset/base/230278

Log:
  Only use the static assertion when __generic is available.
  
  Reported by:	tijl

Modified:
  head/include/complex.h

Modified: head/include/complex.h
==============================================================================
--- head/include/complex.h	Tue Jan 17 20:21:31 2012	(r230277)
+++ head/include/complex.h	Tue Jan 17 20:22:10 2012	(r230278)
@@ -36,6 +36,9 @@
 #define	_Complex	__complex__
 #endif
 #define	_Complex_I	((float _Complex)1.0i)
+#endif
+
+#ifdef __generic
 _Static_assert(__generic(_Complex_I, float _Complex, 1, 0),
     "_Complex_I must be of type float _Complex");
 #endif


More information about the svn-src-head mailing list