diff --git a/contrib/hstore/hstore_io.c b/contrib/hstore/hstore_io.c
index 1faecadf6ec498fd0f08bd14a46aa2edc50d4682..b905ff7f3d5ba94285ea4e799c9710a8f7c1a9af 100644
--- a/contrib/hstore/hstore_io.c
+++ b/contrib/hstore/hstore_io.c
@@ -166,7 +166,7 @@ parse_hstore( HSParser *state ) {
 			state->pairs[ state->pcur ].needfree = true;
 			if ( state->cur - state->word == 4 && !escaped) {
 				state->word[4] = '\0';
-				if ( 0==strcasecmp(state->word, "null") ) 
+				if ( 0==pg_strcasecmp(state->word, "null") ) 
 					state->pairs[ state->pcur ].isnull=true;
 			} 
 			state->word=NULL;