Submitted by Ian Abbott in <
3CC5D023.4305.2F710A@localhost>.
+2002-04-23 Ian Abbott <abbotti@mev.co.uk>
+
+ * windows/config.h.ms: Accounted for MSVC not defining `__STDC__' when
+ Microsoft's extensions are enabled and define it anyway (set to `1').
+ Defined some things that broke as a result of this.
+
2002-04-20 Hrvoje Niksic <hniksic@arsdigita.com>
* po/de.po: Updated from the TP.
#ifndef CONFIG_H
#define CONFIG_H
+/* MS Visual C does not define __STDC__ when the MSC extensions are
+ enabled, but you need those extensions to compile <windows.h>. */
+#if !defined(__STDC__) && defined(_MSC_EXTENSIONS)
+# define __STDC__ 1
+#endif
+
+/* Setting __STDC__ causes MSVC to break other stuff... */
+#if __STDC__ && defined(_MSC_VER)
+# define utimbuf _utimbuf
+# define O_RDONLY _O_RDONLY
+# define alloca _alloca
+#endif
+
/* Define if you have the <alloca.h> header file. */
#undef HAVE_ALLOCA_H