summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@redback.com>2001-03-02 02:54:10 +0000
committerJ.T. Conklin <jtc@redback.com>2001-03-02 02:54:10 +0000
commit617ec439a730eec98a0f29238ca44c7a1babb05e (patch)
tree0c66dae2f783c528aaf03f9e509f586fbbb93133
parent44b1737ea558bc3ef27d9b643d8788b7eb45d4e9 (diff)
downloadgdb-617ec439a730eec98a0f29238ca44c7a1babb05e.tar.gz
* defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
if __CYGWIN32__ is set from here. * config/i386/xm-cygwin.h: To here. * config/powerpc/xm-cygwin.h: To here.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/config/i386/xm-cygwin.h10
-rw-r--r--gdb/config/powerpc/xm-cygwin.h10
-rw-r--r--gdb/defs.h8
4 files changed, 23 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1a33dba9073..0b7614d7aea 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2001-03-01 J.T. Conklin <jtc@redback.com>
+ * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
+ if __CYGWIN32__ is set from here.
+ * config/i386/xm-cygwin.h: To here.
+ * config/powerpc/xm-cygwin.h: To here.
+
* i386-stub.c (handle_exception): Use 'T' response packet.
2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
diff --git a/gdb/config/i386/xm-cygwin.h b/gdb/config/i386/xm-cygwin.h
index 863992c22af..1e210c76da9 100644
--- a/gdb/config/i386/xm-cygwin.h
+++ b/gdb/config/i386/xm-cygwin.h
@@ -1,5 +1,5 @@
/* Definitions for hosting on WIN32, for GDB.
- Copyright 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
This file is part of GDB.
@@ -33,3 +33,11 @@
#define CRLF_SOURCE_FILES
#define HAVE_SIGSETMASK 0
+
+/* 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
diff --git a/gdb/config/powerpc/xm-cygwin.h b/gdb/config/powerpc/xm-cygwin.h
index 2993606285f..2756a9ea61e 100644
--- a/gdb/config/powerpc/xm-cygwin.h
+++ b/gdb/config/powerpc/xm-cygwin.h
@@ -1,5 +1,5 @@
/* Definitions for hosting on WIN32, for GDB.
- Copyright 1995, 1996, 1998 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 1998, 2001 Free Software Foundation, Inc.
This file is part of GDB.
@@ -31,3 +31,11 @@
/* Define this lseek(n) != nth byte of file */
#define LSEEK_NOT_LINEAR
+
+/* 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
diff --git a/gdb/defs.h b/gdb/defs.h
index c1ca4a76569..2766d457e8e 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1259,14 +1259,6 @@ extern int use_windows;
#define MERGEPID(PID, TID) (PID)
#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
-
/* Define well known filenos if the system does not define them. */
#ifndef STDIN_FILENO
#define STDIN_FILENO 0