bug-libunistring
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-libunistring] FIX: libunistring-0.9.3 fails to compile icc


From: Aaron Webster
Subject: [bug-libunistring] FIX: libunistring-0.9.3 fails to compile icc
Date: Tue, 3 Apr 2012 14:57:12 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hello.  libunistring fails to compile using intel icc 11.1 20101201 with an
error in isnan.c.  To fix, modify lib/isnan.c as per the attached diff.


*** /home/woody/mpo1/mpo1216/src/libunistring-0.9.3/lib/isnan.c 2012-04-03 
14:52:53.909410288 +0200
--- /home/woody/mpo1/mpo1216/src/tmp/libunistring-0.9.3/lib/isnan.c     
2010-01-01 11:02:02.000000000 +0100
***************
*** 117,125 ****
  # else
    /* Be careful to not do any floating-point operation on x, such as x == x,
       because x may be a signaling NaN.  */
! #  if defined __SUNPRO_C || defined __ICC || defined _MSC_VER \
!             || defined __DECC || defined __TINYC__ \
!             || (defined __sgi && !defined __GNUC__)
    /* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't
       recognize the initializers as constant expressions.  The latter compiler
       also fails when constant-folding 0.0 / 0.0 even when constant-folding is
--- 117,123 ----
  # else
    /* Be careful to not do any floating-point operation on x, such as x == x,
       because x may be a signaling NaN.  */
! #  if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined 
__GNUC__)
    /* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't
       recognize the initializers as constant expressions.  The latter compiler
       also fails when constant-folding 0.0 / 0.0 even when constant-folding is



reply via email to

[Prev in Thread] Current Thread [Next in Thread]