From e9a803f42a15025ff8eed59e4ae4d8a8ab3645e0 Mon Sep 17 00:00:00 2001 From: Bryan Jurish Date: Wed, 21 Jan 2009 13:39:15 +0000 Subject: + added mooPdUtils.h and some MOO_UNUSED macros svn path=/trunk/externals/moocow/; revision=10582 --- common/mooPdUtils.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 common/mooPdUtils.h (limited to 'common') diff --git a/common/mooPdUtils.h b/common/mooPdUtils.h new file mode 100644 index 0000000..4917e7d --- /dev/null +++ b/common/mooPdUtils.h @@ -0,0 +1,18 @@ +/*=============================================================================*\ + * File: mooPdUtils.h + * Author: Bryan Jurish + * Description: some generic utilities for pd externals + *=============================================================================*/ + +#ifndef _MOO_PD_UTILS_H +#define _MOO_PD_UTILS_H + +/*-- MOO_UNUSED : macro for unused attributes; to avoid compiler warnings */ +#ifdef __GNUC__ +# define MOO_UNUSED __attribute__((unused)) +#else +# define MOO_UNUSED +#endif + + +#endif /* _MOO_PD_UTILS_H */ -- cgit v1.2.1