aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1998-11-19 23:26:12 +0000
committerGeoffrey Noer <noer@cygnus>1998-11-19 23:26:12 +0000
commit6bd87f42ef630351d4a99a26f11d3663a1a4e6b7 (patch)
tree7b4f3b17cae615812c8f9e3ddd346eb747da0ba2 /gdb
parent2196638d08bdb82200ebee2b9a2f68ff91a06f48 (diff)
downloadgdb-6bd87f42ef630351d4a99a26f11d3663a1a4e6b7.zip
gdb-6bd87f42ef630351d4a99a26f11d3663a1a4e6b7.tar.gz
gdb-6bd87f42ef630351d4a99a26f11d3663a1a4e6b7.tar.bz2
Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
* rdi-share/host.h: if compiling under Cygwin, make sure new preprocessor define is defined. Define it if not. * rdi-share/hostchan.h: ditto * rdi-share/aclocal.m4: regenerate * rdi-share/configure: regenerate
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog1
-rw-r--r--gdb/rdi-share/host.h16
-rw-r--r--gdb/rdi-share/hostchan.h8
3 files changed, 17 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6454f49..d42f785 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -2,6 +2,7 @@ Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>
* rdi-share/host.h: if compiling under Cygwin, make sure new
preprocessor define is defined. Define it if not.
+ * rdi-share/hostchan.h: ditto
* rdi-share/aclocal.m4: regenerate
* rdi-share/configure: regenerate
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index e30d965..4a431fa 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -29,6 +29,14 @@
# 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
@@ -219,12 +227,4 @@ 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 */
diff --git a/gdb/rdi-share/hostchan.h b/gdb/rdi-share/hostchan.h
index 81456b5..5706fdc 100644
--- a/gdb/rdi-share/hostchan.h
+++ b/gdb/rdi-share/hostchan.h
@@ -15,6 +15,14 @@
#ifndef angsd_hostchan_h
#define angsd_hostchan_h
+/* 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
+
/* struct timeval */
#if defined(__unix) || defined(__CYGWIN__)
# include <sys/time.h>