[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kjs
From: Unai Garro <ugarro () telefonica ! net>
Date: 2008-01-12 21:35:51
Message-ID: 1200173751.534027.2789.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 760525 by uga:
Fix missing NaN symbol reference for linkage
M +5 -5 fpconst.cpp
--- trunk/KDE/kdelibs/kjs/fpconst.cpp #760524:760525
@@ -33,18 +33,18 @@
// It would be good to figure out a 100% clean way that still avoids code that runs at init time.
#if (defined(AVOID_STATIC_CONSTRUCTORS) && !AVOID_STATIC_CONSTRUCTORS)
- extern const double NaN = NAN;
+ KJS_EXPORT extern const double NaN = NAN;
extern const double Inf = INFINITY;
#elif PLATFORM(DARWIN)
#if PLATFORM(BIG_ENDIAN)
- extern const unsigned char NaN[sizeof(double)] = { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 };
+ KJS_EXPORT extern const unsigned char NaN[sizeof(double)] = { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 };
extern const unsigned char Inf[sizeof(double)] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 };
#elif PLATFORM(MIDDLE_ENDIAN)
- extern const unsigned char NaN[] = { 0, 0, 0xf8, 0x7f, 0, 0, 0, 0 };
+ KJS_EXPORT extern const unsigned char NaN[] = { 0, 0, 0xf8, 0x7f, 0, 0, 0, 0 };
extern const unsigned char Inf[] = { 0, 0, 0xf0, 0x7f, 0, 0, 0, 0 };
#else
- extern const unsigned char NaN[sizeof(double)] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f };
+ KJS_EXPORT extern const unsigned char NaN[sizeof(double)] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f };
extern const unsigned char Inf[sizeof(double)] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
#endif // PLATFORM(MIDDLE_ENDIAN)
@@ -60,7 +60,7 @@
const unsigned char NaN_Bytes[] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f };
const unsigned char Inf_Bytes[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
#endif
- extern const double NaN = *(const double*) NaN_Bytes;
+ KJS_EXPORT extern const double NaN = *(const double*) NaN_Bytes;
extern const double Inf = *(const double*) Inf_Bytes;
#endif // !PLATFORM(DARWIN)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic