diff xtract/libxtract.h @ 36:d8e72a79b86b

Fixed Mac OS X crash by declaring xtract and xtract_help_strings as extern
author Jamie Bullock <jamie@postlude.co.uk>
date Fri, 10 Nov 2006 11:52:08 +0000
parents 29e2738a376d
children 0ea4d6430cfc
line wrap: on
line diff
--- a/xtract/libxtract.h	Tue Oct 24 08:55:44 2006 +0000
+++ b/xtract/libxtract.h	Fri Nov 10 11:52:08 2006 +0000
@@ -176,14 +176,14 @@
  * 
  */
 #ifdef XTRACT
-int(*xtract[XTRACT_FEATURES])(float *data, int N, void *argv, float *result);
+extern int(*xtract[XTRACT_FEATURES])(float *data, int N, void *argv, float *result);
 
 
 /** \brief An array of pointers to function help strings
  *
  * Defined in libxtract.c. As a minimum this will contain pointers to the names of all of the feature extraction functions in the library. This is intended as a 'quick reference' to be queried as necessary.
  */
-char *xtract_help_strings[XTRACT_FEATURES];
+extern char *xtract_help_strings[XTRACT_FEATURES];
 #endif
 
 /** \brief A structure to store a set of n_filters Mel filters */