Skip to content

Commit

Permalink
fix redefine of tolower in gumbo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Aug 10, 2016
1 parent 2e4ae25 commit 509a7ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/gumbo/tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void gumbo_tag_from_original_text(GumboStringPiece* text) {
* characters and is locale-independent to remain truthy to the
* standard
*/
#define tolower(c) gumbo_tolower(c)
#define perfhash_tolower(c) gumbo_tolower(c)
#include "tag_perf.h"

static int
Expand Down
2 changes: 1 addition & 1 deletion internal/gumbo/tag_perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int T1[] = {
};

#ifndef perfhash_tolower
#define perfhash_tolower(c) tolower(c)
#define perfhash_tolower(c) gumbo_tolower(c)
#endif

static int perfhash(const unsigned char *key, int len)
Expand Down

0 comments on commit 509a7ee

Please sign in to comment.