[Scilab-Dev] exp10 function in LogarithmicBoundsComputer.cpp

Sylvestre Ledru sylvestre.ledru at scilab.org
Mon Dec 29 18:34:57 CET 2008


Hello,

Le lundi 29 décembre 2008 à 13:29 -0400, Jonathan Blanchard a écrit :
> Hi all,
> 
> The file  scilab/modules/renderer/src/cpp/subwinDrawing/LogarithmicBoundsComputer.cpp
> use the exp10 function twice. Sadly this is a GNU extension and does
> not exist in all compilers, Sun studio 12 in this case. I fixed my
> copy of the source code by replacing the function by it's pow()
> equivalent and would like to know if it could be possible to have it
> changed it in the main source code.
Sure, could you send the patch and I will apply it against the master.

Btw, what is the result of:
grep exp10 modules/core/includes/machine.h
?
we have a macro which says if it is available or not and we should use
it in the code like:
#ifdef exp10
exp10(plop)
#else
...

Thanks
Sylvestre





More information about the dev mailing list