Scilab: fix compilation error
This commit is contained in:
parent
808a81a113
commit
c4f0003465
1 changed files with 1 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ extern "C" {
|
||||||
#include "localization.h"
|
#include "localization.h"
|
||||||
#include "freeArrayOfString.h"
|
#include "freeArrayOfString.h"
|
||||||
#if !SWIG_SCILAB_VERSION_MIN(5, 4, 0)
|
#if !SWIG_SCILAB_VERSION_MIN(5, 4, 0)
|
||||||
|
#define __USE_DEPRECATED_STACK_FUNCTIONS__
|
||||||
#include "stack-c.h"
|
#include "stack-c.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
@ -207,7 +208,6 @@ SWIG_Scilab_NewMemberObj(void *_pvApiCtx, int _iVarOut, void *_ptr, int _sz, swi
|
||||||
char result[1024];
|
char result[1024];
|
||||||
char *r = result;
|
char *r = result;
|
||||||
|
|
||||||
SciErr sciErr;
|
|
||||||
if ((2*_sz + 1 + strlen(_type->name)) > 1000) {
|
if ((2*_sz + 1 + strlen(_type->name)) > 1000) {
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue