Skip to content

Commit

Permalink
Avoid possible symbol name clash when linking againt static libpq.
Browse files Browse the repository at this point in the history
This should fix issue #209 .
  • Loading branch information
larskanis committed Mar 13, 2015
1 parent d6cedfb commit 6524b5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/pg_text_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ quote_array_buffer( void *_this, char *p_in, int strlen, char *p_out ){
/* count data plus backslashes; detect chars needing quotes */
if (strlen == 0)
needquote = 1; /* force quotes for empty string */
else if (strlen == 4 && pg_strncasecmp(p_in, "NULL", strlen) == 0)
else if (strlen == 4 && rbpg_strncasecmp(p_in, "NULL", strlen) == 0)
needquote = 1; /* force quotes for literal NULL */
else
needquote = 0;
Expand Down
2 changes: 1 addition & 1 deletion ext/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ base64_decode( char *out, char *in, unsigned int len)
* At most n bytes will be examined from each string.
*/
int
pg_strncasecmp(const char *s1, const char *s2, size_t n)
rbpg_strncasecmp(const char *s1, const char *s2, size_t n)
{
while (n-- > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion ext/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
void base64_encode( char *out, char *in, int len);
int base64_decode( char *out, char *in, unsigned int len);

int pg_strncasecmp(const char *s1, const char *s2, size_t n);
int rbpg_strncasecmp(const char *s1, const char *s2, size_t n);

#endif /* end __utils_h */

0 comments on commit 6524b5b

Please sign in to comment.