projects
/
psqlodbc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
835217c
)
Use strdup on non-Windows systems (#17)
author
Adrian Grucza
<46910040+apgrucza@users.noreply.github.com>
Mon, 13 May 2024 15:38:02 +0000
(
01:38
+1000)
committer
GitHub
<noreply@github.com>
Mon, 13 May 2024 15:38:02 +0000
(11:38 -0400)
psqlodbc.h
patch
|
blob
|
blame
|
history
diff --git
a/psqlodbc.h
b/psqlodbc.h
index 5b40b586c8846813b6234512c075f6e0137f3922..eb81c17698893696f12eff5f946b1cb2a1b56302 100644
(file)
--- a/
psqlodbc.h
+++ b/
psqlodbc.h
@@
-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_ */