Skip to content

Commit

Permalink
Use strdup on non-Windows systems (postgresql-interfaces#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
apgrucza authored May 13, 2024
1 parent 835217c commit d17def7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions psqlodbc.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@
#define pg_malloc malloc
#define pg_realloc realloc
#define pg_calloc calloc
#ifndef WIN32
#define pg_strdup strdup
#else
#define pg_strdup _strdup
#endif /* WIN32 */
#define pg_free free
#endif /* _MIMALLOC_ */

Expand Down

0 comments on commit d17def7

Please sign in to comment.