Skip to content

Commit

Permalink
added if-defined conditions to support csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo Pasotti authored and Björn Esser committed Jan 18, 2015
1 parent ec8a6f2 commit 82f5efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions swig/yui.i
Expand Up @@ -116,6 +116,7 @@ class intrusive_ptr {
%define DEFINE_PTR_TYPE(name)
%enddef

#if !defined(SWIGCSHARP)
%rename("+") "operator+";
%rename("<<") "operator<<";
%rename("!=") "operator!=";
Expand All @@ -127,7 +128,9 @@ class intrusive_ptr {
%include "std_list.i"
%include "std_vector.i"

#if defined(SWIGPERL5)
#endif

#if defined(SWIGPERL5) || defined(SWIGCSHARP)
/* %include "std/std_set.i" # doesn't compile ?! */
#else
%include "std_set.i"
Expand Down Expand Up @@ -252,7 +255,6 @@ class Exception;
%include yui/YExternalWidgetFactory.h
%include yui/YExternalWidgets.h


#if defined(SWIGRUBY)
%extend YEvent {
VALUE mywidget() { return INT2FIX( $self->widget() ); }
Expand Down

0 comments on commit 82f5efe

Please sign in to comment.