Various minor changes for compatibility with MS Visual C++ and GCC 4.4
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3105 ac1d8469-bf42-47a9-8791-bf33cf982152issue#70
parent
e45d3a4cb2
commit
8bd114300a
|
@ -36,6 +36,18 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
typedef __int8 int8_t;
|
||||
typedef unsigned __int8 uint8_t;
|
||||
typedef __int16 int16_t;
|
||||
typedef unsigned __int16 uint16_t;
|
||||
typedef __int32 int32_t;
|
||||
typedef unsigned __int32 uint32_t;
|
||||
typedef __int64 int64_t;
|
||||
typedef unsigned __int64 uint64_t;
|
||||
#else
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -1379,21 +1379,12 @@ UnaryOpNode::eval_opcode(UnaryOpcode op_code, double v) throw (EvalException)
|
|||
return(sinh(v));
|
||||
case oTanh:
|
||||
return(tanh(v));
|
||||
#ifndef _WIN64
|
||||
case oAcosh:
|
||||
return(acosh(v));
|
||||
case oAsinh:
|
||||
return(asinh(v));
|
||||
case oAtanh:
|
||||
return(atanh(v));
|
||||
#else
|
||||
case oAcosh:
|
||||
throw EvalException();
|
||||
case oAsinh:
|
||||
throw EvalException();
|
||||
case oAtanh:
|
||||
throw EvalException();
|
||||
#endif
|
||||
case oSqrt:
|
||||
return(sqrt(v));
|
||||
case oSteadyState:
|
||||
|
|
Loading…
Reference in New Issue