diff options
author | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-03-01 18:06:58 +0000 |
---|---|---|
committer | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-03-01 18:06:58 +0000 |
commit | b9c9f9e137910daedb09a363f102eb688aeb77d6 (patch) | |
tree | 7188e3675801f60013a613494fb22a3cfefff9fc /PDContainer/src/h_vector.cpp | |
parent | 42771fa88771903fa47be7bb7feea0976d47142e (diff) |
fix to support Pd-Extended and also the old buildsystem
svn path=/trunk/externals/grh/; revision=7457
Diffstat (limited to 'PDContainer/src/h_vector.cpp')
-rwxr-xr-x | PDContainer/src/h_vector.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/PDContainer/src/h_vector.cpp b/PDContainer/src/h_vector.cpp index ca2fede..8c4c8fb 100755 --- a/PDContainer/src/h_vector.cpp +++ b/PDContainer/src/h_vector.cpp @@ -456,7 +456,12 @@ static void *h_vector_free(t_h_vector *x) return (void *)x; } -extern "C" void h_vector_setup(void) +#if defined(PDCONTAINER_SINGLE_OBJECT) +// for PD-Extended +extern "C" { +#endif + +void h_vector_setup(void) { // the object class h_vector_class = class_new(gensym("h_vector"), (t_newmethod)h_vector_new, @@ -488,7 +493,7 @@ extern "C" void h_vector_setup(void) gensym("namespace"), A_DEFSYMBOL , 0); class_addmethod(h_vector_class, (t_method)h_vector_get_namespace, gensym("getnamespace"), A_DEFFLOAT, 0); - class_addmethod(h_vector_class, (t_method)h_vector_print, + class_addmethod(h_vector_class, (t_method)h_vector_getall, gensym("getall"), A_DEFFLOAT, 0); class_addmethod(h_vector_class, (t_method)h_vector_print, gensym("print"), A_DEFFLOAT, 0); @@ -512,3 +517,8 @@ extern "C" void h_vector_setup(void) // without an argument the following two methods wont work ??? why?? because of c++? class_addmethod(h_vector_class, (t_method)h_vector_help, gensym("help"),A_DEFFLOAT, 0); } + +#if defined(PDCONTAINER_SINGLE_OBJECT) +// for PD-Extended +} +#endif |