* gnu-regex.c: Eliminate obsolete check for _MSC_VER.
[deliverable/binutils-gdb.git] / gdb / rdi-share / host.h
index 3ae8fc44e479bef849bb58238482e091196fbc1e..2955583d08385e0933f36512dd582ec06e661ee7 100644 (file)
 #  define offsetof(T, member)  ((char *)&(((T *)0)->member) - (char *)0)
 #endif
 
+/* If under Cygwin, provide backwards compatibility with older
+   Cygwin compilers that don't define the current cpp define. */
+#ifdef __CYGWIN32__
+#ifndef __CYGWIN__
+#define __CYGWIN__
+#endif
+#endif
+
 #ifdef unix                   /* A temporary sop to older compilers */
 #  ifndef __unix              /* (good for long-term portability?)  */
 #    define __unix    1
 #  define COMPILING_ON_WINDOWS_CONSOLE 1
 #  define COMPILING_ON_WINDOWS 1
 #endif
-#ifdef _MSC_VER
-#  define COMPILING_ON_MSDOS    1
-#  define COMPILING_ON_WINDOWS  1
-#  if defined(__cplusplus)
-#    define IMPLEMENT_BOOL_AS_INT 1 /* VC++ doesn't have 'bool' (yet) */
-#  endif
-#endif
 /* The '(defined(__sparc) && defined(P_tmpdir)                     */
 /* && !defined(__svr4__))' is to detect gcc on SunOS.              */
 /* C++ compilers don't have to define __STDC__                     */
@@ -179,8 +180,7 @@ typedef char *ArgvType;
 #  define FILENAME_MAX 256
 #endif
 
-#if (!defined(__STDC__) && !defined(__cplusplus) && !defined(_MSC_VER)) || \
-    defined(COMPILING_ON_SUNOS)
+#if (!defined(__STDC__) && !defined(__cplusplus) || defined(COMPILING_ON_SUNOS)
 /* Use bcopy rather than memmove, as memmove is not available.     */
 /* There does not seem to be a header for bcopy.                   */
 void bcopy(const char *src, char *dst, int length);
This page took 0.025859 seconds and 4 git commands to generate.