Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9cf0a231
Kaydet (Commit)
9cf0a231
authored
Haz 04, 2013
tarafından
Herbert Dürr
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
extend workaround for gcc bug 14608 to work on gcc<4.3
üst
797e3999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mathconf.h
sal/inc/sal/mathconf.h
+7
-7
No files found.
sal/inc/sal/mathconf.h
Dosyayı görüntüle @
9cf0a231
...
@@ -55,15 +55,15 @@ extern "C" {
...
@@ -55,15 +55,15 @@ extern "C" {
/* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */
/* SAL_MATH_FINITE(d): test double d on INFINITY, NaN et al. */
#if defined(__GNUC__)
#if defined(__GNUC__)
// workaround gcc bug 14608
#if defined(MACOSX)
#if (__GNUC_MINOR >= 3) // gcc>=4.3 has a builtin
#define SAL_MATH_FINITE(d)
finite(d)
#define SAL_MATH_FINITE(d) __builtin_is
finite(d)
#else
#else
#define SAL_MATH_FINITE(d) __builtin_isfinite(d) // gcc bug 14608
#define SAL_MATH_FINITE(d) finite(d) // fall back to pre-C99 name
#endif
#endif
#elif defined(__STDC__)
#elif defined(__STDC__)
// isfinite() should be available in math.h according to C99,C++99,SUSv3,etc.
// isfinite() should be available in math.h according to C99,C++99,SUSv3,etc.
// unless GCC bug 14608 hits us where cmath undefines isfinite as macro
// unless GCC bug 14608 hits us where cmath undefines isfinite
()
as macro
#define SAL_MATH_FINITE(d) isfinite(d)
#define SAL_MATH_FINITE(d) isfinite(d)
#elif defined( WNT)
#elif defined( WNT)
#define SAL_MATH_FINITE(d) _finite(d)
#define SAL_MATH_FINITE(d) _finite(d)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment