From a7954f32f144956af9a3924ab3044e3130e734c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr> Date: Fri, 25 Jun 2010 17:32:57 +0200 Subject: [PATCH] Bytecode DLL: provisions for Microsoft Visual C++ --- mex/sources/bytecode/Interpreter.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mex/sources/bytecode/Interpreter.cc b/mex/sources/bytecode/Interpreter.cc index c979828b1..1c180ace1 100644 --- a/mex/sources/bytecode/Interpreter.cc +++ b/mex/sources/bytecode/Interpreter.cc @@ -652,9 +652,14 @@ Interpreter::compute_block_time(int Per_u_, bool evaluate, int block_num) switch (op) { case oNormcdf: +#ifndef _MSC_VER Stack.push(0.5*(1+erf((v1-v2)/v3/M_SQRT2))); -#ifdef DEBUG +# ifdef DEBUG tmp_out << " |normcdf(" << v1 << ", " << v2 << ", " << v2 << ")|"; +# endif +#else + // erf() does not exist in Microsoft Visual C++ + mexErrMsgTxt("bytecode: normcdf() not supported on your platform"); #endif break; default: -- GitLab