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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to