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:
Jonathan Schleifer
2014-02-03 18:27:35 +01:00
parent 539a6cafc5
commit b55c918f57
6 changed files with 5455 additions and 16 deletions
-14
View File
@@ -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