diff options
author | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-01-10 16:00:04 +0000 |
---|---|---|
committer | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-01-10 16:00:04 +0000 |
commit | 7a956bf4b29c41c3c03984d59eb736edece27c71 (patch) | |
tree | cbe480cdec4ff71d55d3ff213fda2383a03d3490 /src/iem_tab.c | |
parent | 4d0141affe73a047db17b1151636a6f9de8fe881 (diff) |
fix for pd-extended build system
svn path=/trunk/externals/iem/iem_tab/; revision=7281
Diffstat (limited to 'src/iem_tab.c')
-rw-r--r-- | src/iem_tab.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/iem_tab.c b/src/iem_tab.c index a4005d0..08b0ca9 100644 --- a/src/iem_tab.c +++ b/src/iem_tab.c @@ -6,8 +6,6 @@ iem_tab written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2006 #include "m_pd.h" #include "iemlib.h" -static t_class *iem_tab_class; - int iem_tab_check_arrays(t_symbol *obj_name, t_symbol *array_name, t_float **beg_mem, int *array_size, int max_index) { int ok=1; @@ -31,6 +29,15 @@ int iem_tab_check_arrays(t_symbol *obj_name, t_symbol *array_name, t_float **beg return(ok); } + +// Georg Holzmann: +#ifdef IEMTAB_SINGLE_OBJ +// for single externals disable the iem_tab object +#else +// build as library + +static t_class *iem_tab_class; + static void *iem_tab_new(void) { t_object *x = (t_object *)pd_new(iem_tab_class); @@ -130,3 +137,5 @@ void iem_tab_setup(void) post("iem_tab (R-1.17) library loaded! (c) Thomas Musil 11.2006"); post(" musil%ciem.at iem KUG Graz Austria", '@'); } + +#endif // library |