aboutsummaryrefslogtreecommitdiff
path: root/modules/abs.c
diff options
context:
space:
mode:
authorTom Schouten <doelie@users.sourceforge.net>2003-01-27 17:06:07 +0000
committerTom Schouten <doelie@users.sourceforge.net>2003-01-27 17:06:07 +0000
commit968e313857743435e662c831a8b29f50b20e0d41 (patch)
tree3c120456d9378257942767bf0d360932991fa5e3 /modules/abs.c
parent7f5bcf8ad536a674ba6f626e1a11ebd660fdec24 (diff)
creb 0.7
svn path=/trunk/externals/creb/; revision=364
Diffstat (limited to 'modules/abs.c')
-rw-r--r--modules/abs.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/modules/abs.c b/modules/abs.c
index 4d8b8eb..0cb3d4d 100644
--- a/modules/abs.c
+++ b/modules/abs.c
@@ -1,21 +1,6 @@
-/*
- * abs.c - computes absolute value of a signal
- * Copyright (c) 2000-2003 by Tom Schouten
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
+
+// since this is present in a lot of libs, it is conditionally compiled
+#ifdef HAVE_ABS_TILDE
#include "m_pd.h"
#include <math.h>
@@ -62,3 +47,5 @@ void abs_tilde_setup(void)
class_addmethod(abs_class, (t_method)nullfn, &s_signal, A_NULL);
class_addmethod(abs_class, (t_method)abs_dsp, gensym("dsp"), A_NULL);
}
+
+#endif