Import gnuregex 0.12 and remove hardcoded paths
This is required on OS X and other systems which do not have the glibc extensions for regular expressions (FreeBSD is not one of them as it already includes gnuregex in /usr). With this there are no hardcoded non-standard paths for OS X anymore. regex.c and regex.h are from the official gnuregex 0.12 distribution, the only modification is that I added __BEGIN_DECLS and __END_DECLS to regex.h.
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_REGEX
|
||||
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_REGEX
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
// Include the darwin port of gnuregex
|
||||
|
||||
#include </opt/local/include/gnuregex.h>
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_REGEX
|
||||
Reference in New Issue
Block a user