From 3a37d7d86eeffbac72a5f11df711c3237d1a6938 Mon Sep 17 00:00:00 2001 From: Vincent Couvert Date: Fri, 20 May 2011 08:20:06 +0000 Subject: [PATCH] Add define for Scilab git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12696 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/char_strings.i | 2 +- Examples/test-suite/operator_overload.i | 2 +- Examples/test-suite/varargs_overload.i | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Examples/test-suite/char_strings.i b/Examples/test-suite/char_strings.i index cc59815b2..4308f85d8 100644 --- a/Examples/test-suite/char_strings.i +++ b/Examples/test-suite/char_strings.i @@ -9,7 +9,7 @@ below. %warnfilter(SWIGWARN_TYPEMAP_VARIN_UNDEF) global_char_array1; // Unable to set variable of type char[] %warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG) global_const_char; // Setting a const char * variable may leak memory. -#ifdef SWIG_ALLEGRO_CL +#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB) %{ #include %} diff --git a/Examples/test-suite/operator_overload.i b/Examples/test-suite/operator_overload.i index 006662109..2260fcea0 100644 --- a/Examples/test-suite/operator_overload.i +++ b/Examples/test-suite/operator_overload.i @@ -73,7 +73,7 @@ see bottom for a set of possible tests %rename(OrOperator) operator ||; #endif -#ifdef SWIG_ALLEGRO_CL +#if defined(SWIG_ALLEGRO_CL) || defined(SWIGSCILAB) %{ #include %} diff --git a/Examples/test-suite/varargs_overload.i b/Examples/test-suite/varargs_overload.i index 1ba00ba65..c34c6227d 100644 --- a/Examples/test-suite/varargs_overload.i +++ b/Examples/test-suite/varargs_overload.i @@ -2,6 +2,12 @@ // The default behavior is to simply ignore the varargs. %module varargs_overload +#if defined(SWIGSCILAB) +%{ +#include +%} +#endif + %inline %{ const char *vararg_over1(const char *fmt, ...) { return fmt;