aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2001-04-05 02:02:13 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2001-04-05 02:02:13 +0000
commit608506ed674285b7c6dc61e0bdbe9e8c473c0e7b (patch)
tree64eb0219903753785c412eae6f6141e68486f465 /gdb/main.c
parent6457bd476178a8cac32638d2e5d6cf0977a88e69 (diff)
downloadgdb-608506ed674285b7c6dc61e0bdbe9e8c473c0e7b.zip
gdb-608506ed674285b7c6dc61e0bdbe9e8c473c0e7b.tar.gz
gdb-608506ed674285b7c6dc61e0bdbe9e8c473c0e7b.tar.bz2
* main.c: Remove windows.h use.
(gdbtk_test): Use PATH_MAX for home var calculation. * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as Win32 in test. * ser-tcp.c: Use modern __CYGWIN__ conditional. * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test. (openp): Ditto. * symfile.c (symfile_bfd_open): Ditto. * gdbtk/generic/gdbtk.c: Ditto.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 2b70712..ceac132 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -91,7 +91,6 @@ extern int enable_external_editor;
extern char *external_editor_command;
#ifdef __CYGWIN__
-#include <windows.h> /* for MAX_PATH */
#include <sys/cygwin.h> /* for cygwin32_conv_to_posix_path */
#endif
@@ -535,13 +534,13 @@ extern int gdbtk_test (char *);
*before* all the command line arguments are processed; it sets
global parameters, which are independent of what file you are
debugging or what directory you are in. */
-#ifdef __CYGWIN32__
+#ifdef __CYGWIN__
{
char *tmp = getenv ("HOME");
if (tmp != NULL)
{
- homedir = (char *) alloca (MAX_PATH + 1);
+ homedir = (char *) alloca (PATH_MAX + 1);
cygwin32_conv_to_posix_path (tmp, homedir);
}
else