Skip to content

Commit

Permalink
fix to mac compilcation memmem
Browse files Browse the repository at this point in the history
  • Loading branch information
zwdzwd committed May 15, 2018
1 parent f59394b commit bcd05f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/aln/bwamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ typedef struct {
* The return value is a pointer to the beginning of the sub-string, or
* NULL if the substring is not found.
*/
static void *memmem(const void *haystack, size_t hlen, const void *needle, size_t nlen) {
static void *wzmemmem(const void *haystack, size_t hlen, const void *needle, size_t nlen) {
int needle_first;
const void *p = haystack;
size_t plen = hlen;
Expand All @@ -223,7 +223,7 @@ static void *memmem(const void *haystack, size_t hlen, const void *needle, size_
static void read_identify_adaptor(bseq1_t *seq, uint8_t *adaptor, int l_adaptor) {
if (adaptor == NULL) seq->l_adaptor = 0;
else {
uint8_t *adaptor_firstbase = memmem(seq->seq, seq->l_seq, adaptor, l_adaptor);
uint8_t *adaptor_firstbase = wzmemmem(seq->seq, seq->l_seq, adaptor, l_adaptor);
if (adaptor_firstbase) seq->l_adaptor = seq->l_seq-(adaptor_firstbase-seq->seq);
else {
int i;
Expand Down
2 changes: 1 addition & 1 deletion src/biscuit.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef PACKAGE_VERSION
#define PACKAGE_VERSION "0.3.8.20180506"
#define PACKAGE_VERSION "0.3.8.20180515"

#endif

0 comments on commit bcd05f3

Please sign in to comment.