Workaround for char16_t definition when using Matlab2010a and VS2010
This commit is contained in:
parent
bd2bc32689
commit
7e6b232978
15 changed files with 93 additions and 12 deletions
|
|
@ -1,13 +1,20 @@
|
|||
/**
|
||||
* @file ctfunctions.cpp
|
||||
*/
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ct.h>
|
||||
#include <cantera/clib/ctonedim.h>
|
||||
#include <cantera/clib/ctxml.h>
|
||||
#include "ctmatutils.h"
|
||||
#include <string.h>
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
void reportError() {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,15 @@
|
|||
* class is indicated by the first parameter in the call from MATLAB.
|
||||
*/
|
||||
|
||||
#include <cantera/clib/ct.h>
|
||||
#include <string>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
#include "mllogger.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ctreactor.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ctfunc.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ct.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,17 @@
|
|||
/**
|
||||
* @file mixturemethods.cpp
|
||||
*/
|
||||
#include <iostream>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ctmultiphase.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
void mixturemethods( int nlhs, mxArray *plhs[],
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ctonedim.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file phasemethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ct.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file reactormethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ctreactor.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file reactornetmethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ctreactor.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
|
|
|
|||
|
|
@ -1,11 +1,16 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include "ctmatutils.h"
|
||||
#include <cantera/clib/ctsurf.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file thermomethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
#include <fstream>
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
#include <fstream>
|
||||
|
||||
void reportError();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file wallmethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ctreactor.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,13 @@
|
|||
/**
|
||||
* @file xmlmethods.cpp
|
||||
*/
|
||||
|
||||
// Workaround for VS2010 and Matlab 2010a
|
||||
#if (_MSC_VER >= 1600) && defined(_CHAR16T)
|
||||
#define CHAR16_T char16_t
|
||||
#endif
|
||||
#include "mex.h"
|
||||
|
||||
#include <cantera/clib/ctxml.h>
|
||||
#include <cantera/clib/ct.h>
|
||||
#include "ctmatutils.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue