From b9c9f9e137910daedb09a363f102eb688aeb77d6 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Thu, 1 Mar 2007 18:06:58 +0000 Subject: fix to support Pd-Extended and also the old buildsystem svn path=/trunk/externals/grh/; revision=7457 --- PDContainer/src/h_list.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'PDContainer/src/h_list.cpp') diff --git a/PDContainer/src/h_list.cpp b/PDContainer/src/h_list.cpp index 3434bff..7da94be 100755 --- a/PDContainer/src/h_list.cpp +++ b/PDContainer/src/h_list.cpp @@ -393,7 +393,12 @@ static void *h_list_free(t_h_list *x) return (void *)x; } -extern "C" void h_list_setup(void) +#if defined(PDCONTAINER_SINGLE_OBJECT) +// for PD-Extended +extern "C" { +#endif + +void h_list_setup(void) { // the object class h_list_class = class_new(gensym("h_list"), (t_newmethod)h_list_new, @@ -466,3 +471,8 @@ extern "C" void h_list_setup(void) // without an argument the following two methods wont work ??? why?? because of c++? class_addmethod(h_list_class, (t_method)h_list_help, gensym("help"),A_DEFFLOAT, 0); } + +#if defined(PDCONTAINER_SINGLE_OBJECT) +// for PD-Extended +} +#endif -- cgit v1.2.1