aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share/host.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rdi-share/host.h')
-rw-r--r--gdb/rdi-share/host.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index ba09d82..e30d965 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -219,4 +219,12 @@ extern double strtod(const char *str, char **ptr);
#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
+
/* end of host.h */