[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 125446] Compile error on Solaris 8 -
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2006-04-12 20:51:49
Message-ID: 20060412205149.31820.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=125446         
adrian pagenet plus com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From adrian pagenet plus com  2006-04-12 22:51 -------
SVN commit 529238 by page:

Use pow if powf is not available.

BUG: 125446



 M  +5 -0      colorspaces/rgb_f16half/kis_rgb_f16half_colorspace.cc  
 M  +5 -0      colorspaces/rgb_f32/kis_rgb_f32_colorspace.cc  
 M  +7 -0      configure.in.in  


--- branches/koffice/1.5/koffice/krita/colorspaces/rgb_f16half/kis_rgb_f16half_colorspace.cc \
#529237:529238  @ -38,6 +38,11  @
 
 #include "kis_integer_maths.h"
 
+#ifndef HAVE_POWF
+#undef powf
+#define powf pow
+#endif
+
 //#define HALF_MAX ((half)1.0f) //temp
 
 #define EPSILON HALF_EPSILON
--- branches/koffice/1.5/koffice/krita/colorspaces/rgb_f32/kis_rgb_f32_colorspace.cc \
#529237:529238  @ -39,6 +39,11  @
 
 #include "kis_integer_maths.h"
 
+#ifndef HAVE_POWF
+#undef powf
+#define powf pow
+#endif
+
 #define FLOAT_MAX 1.0f //temp
 
 #define EPSILON 1e-6
--- branches/koffice/1.5/koffice/krita/configure.in.in #529237:529238
 @ -99,3 +99,10  @
 
 # --- End of OpenGL check ---
 
+# Check for powf.
+
+AC_CHECK_FUNC(powf, [have_powf="yes"], [AC_CHECK_LIB(m, powf, [have_powf="yes"], \
[have_powf="no"])]) +
+if test "$have_powf" = 'yes'; then
+  AC_DEFINE([HAVE_POWF], 1, [Define to 1 if your system has powf in <maths.h>])
+fi


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic