aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-03-03 21:35:46 +0000
committerBruce Momjian <bruce@momjian.us>2006-03-03 21:35:46 +0000
commit28edbdb7be4faf23211074e0567f9926c51459a0 (patch)
treeaa2ca28ac433c204c935f1500645064e34f270fe
parent523adeb1119bbc68e056c4e3a2aa2a62dcf26e9e (diff)
downloadpostgresql-28edbdb7be4faf23211074e0567f9926c51459a0.tar.gz
postgresql-28edbdb7be4faf23211074e0567f9926c51459a0.zip
Add workaround so MSVC doesn't try to load strings.h, which it doesn't
have. This happens when MSVC uses pg_config.h generated by MinGW. Per report from Charles F. I. Savage
-rw-r--r--src/include/c.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/c.h b/src/include/c.h
index adade7f6456..fcab5cbd561 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/c.h,v 1.196 2006/02/16 23:23:50 petere Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.197 2006/03/03 21:35:46 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -66,7 +66,8 @@
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
-#ifdef HAVE_STRINGS_H
+/* Some use MinGW-generated pg_config.h but MSVC for extensions. */
+#if defined(HAVE_STRINGS_H) && !defined(WIN32_CLIENT_ONLY)
#include <strings.h>
#endif
#include <sys/types.h>