Fixed *nix build.
authorHiroshi Saito <hiroshi@winpg.jp>
Mon, 11 Sep 2006 19:00:28 +0000 (19:00 +0000)
committerHiroshi Saito <hiroshi@winpg.jp>
Mon, 11 Sep 2006 19:00:28 +0000 (19:00 +0000)
win_unicode.c

index fc4baa628b8e32967fc18e450e6f0f39f1eb1b9a..47ab93abed1527bf9199d80bb9bb45c5e2183cac 100644 (file)
@@ -8,9 +8,17 @@
  */
 
 #include "psqlodbc.h"
-#include <stdio.h>
-#include <string.h>
+#ifdef  WIN32
+#ifdef  _DEBUG
+#ifndef _MEMORY_DEBUG_
+#include <stdlib.h>
 #include <malloc.h>
+#define _CRTDBG_MAP_ALLOC
+#include <crtdbg.h>
+#endif /* _MEMORY_DEBUG_ */
+#endif /* _DEBUG */
+#endif /* WIN32 */
+#include <string.h>
 
 #define    byte3check  0xfffff800
 #define    byte2_base  0x80c0