diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-13 14:03:33 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-13 14:03:33 +0200 |
commit | 124034579abdf8cdfe5a965307bf0027e62d1be6 (patch) | |
tree | 78aaaf18bda8f3409289a7ff01ecd3abbc4a3786 /lib/os_internal.h | |
parent | 125e98b02c9d62e09e154f176aacc2b9c51fd164 (diff) | |
download | xine-lib-124034579abdf8cdfe5a965307bf0027e62d1be6.tar.gz xine-lib-124034579abdf8cdfe5a965307bf0027e62d1be6.tar.bz2 |
Backport the memmem() replacement from 1.2 series.
Diffstat (limited to 'lib/os_internal.h')
-rw-r--r-- | lib/os_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/os_internal.h b/lib/os_internal.h index 5f61fb84d..f52f56847 100644 --- a/lib/os_internal.h +++ b/lib/os_internal.h @@ -268,4 +268,13 @@ void xine_private_rewinddir(DIR *); #endif +/* replacement of memmem */ +#ifndef HAVE_MEMMEM +#define HAVE_MEMMEM +#define memmem(H, HL, N, NL) \ + xine_private_memmem((H), (HL), (N), (NL)) +void *xine_internal_memmem (const void *haystack, size_t haystack_len, + const void *needle, size_t needle_len); +#endif + #endif |