diff options
author | Geoffrey Noer <noer@cygnus> | 1998-11-16 22:17:37 +0000 |
---|---|---|
committer | Geoffrey Noer <noer@cygnus> | 1998-11-16 22:17:37 +0000 |
commit | 8adbc73e782a09310d71fd6872998e761e282c60 (patch) | |
tree | 227a2e9d4ae105d8d84090bca86b3455eb59eb88 /gdb/defs.h | |
parent | 45cac0cb846aef6838a9b35062e7f7e7010bef5c (diff) | |
download | gdb-8adbc73e782a09310d71fd6872998e761e282c60.zip gdb-8adbc73e782a09310d71fd6872998e761e282c60.tar.gz gdb-8adbc73e782a09310d71fd6872998e761e282c60.tar.bz2 |
Mon Nov 16 14:17:05 1998 Geoffrey Noer <noer@cygnus.com>
* defs.h: if compiling under Cygwin, define __CYGWIN__ if
__CYGWIN32__ is defined and __CYGWIN__ isn't for backwards
compatibility.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -1,5 +1,5 @@ /* Basic, host-specific, and target-specific definitions for GDB. - Copyright (C) 1986, 89, 91, 92, 93, 94, 95, 1996, 1998 + Copyright (C) 1986, 89, 91, 92, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. This file is part of GDB. @@ -220,8 +220,6 @@ extern int inside_entry_file PARAMS ((CORE_ADDR addr)); extern int inside_main_func PARAMS ((CORE_ADDR pc)); -extern void _initialize_blockframe PARAMS ((void)); - /* From ch-lang.c, for the moment. (FIXME) */ extern char *chill_demangle PARAMS ((const char *)); @@ -243,6 +241,7 @@ extern void request_quit PARAMS ((int)); extern void do_cleanups PARAMS ((struct cleanup *)); extern void do_final_cleanups PARAMS ((struct cleanup *)); extern void do_my_cleanups PARAMS ((struct cleanup **, struct cleanup *)); +extern void do_run_cleanups PARAMS ((struct cleanup *)); extern void discard_cleanups PARAMS ((struct cleanup *)); extern void discard_final_cleanups PARAMS ((struct cleanup *)); @@ -250,17 +249,14 @@ extern void discard_my_cleanups PARAMS ((struct cleanup **, struct cleanup *)); typedef void (*make_cleanup_func) (void *); -extern struct cleanup * -make_cleanup PARAMS ((make_cleanup_func, void *)); +extern struct cleanup *make_cleanup PARAMS ((make_cleanup_func, void *)); -extern struct cleanup * -make_final_cleanup PARAMS ((void (*function) (void *), void *)); +extern struct cleanup *make_final_cleanup PARAMS ((make_cleanup_func, void *)); -extern struct cleanup * -make_my_cleanup PARAMS ((struct cleanup **, void (*function) (void *), void *)); +extern struct cleanup *make_my_cleanup PARAMS ((struct cleanup **, + make_cleanup_func, void *)); -extern struct cleanup * -make_run_cleanup PARAMS ((void (*function) (void *), void *)); +extern struct cleanup *make_run_cleanup PARAMS ((make_cleanup_func, void *)); extern struct cleanup *save_cleanups PARAMS ((void)); extern struct cleanup *save_final_cleanups PARAMS ((void)); @@ -381,8 +377,6 @@ extern NORETURN void perror_with_name PARAMS ((char *)) ATTR_NORETURN; extern void print_sys_errmsg PARAMS ((char *, int)); -extern void _initialize_stack PARAMS ((void)); - /* From regex.c or libc. BSD 4.4 declares this with the argument type as "const char *" in unistd.h, so we can't declare the argument as "char *". */ @@ -418,8 +412,6 @@ extern void print_address_numeric PARAMS ((CORE_ADDR, int, GDB_FILE *)); extern void print_address PARAMS ((CORE_ADDR, GDB_FILE *)); -extern void _initialize_printcmd PARAMS ((void)); - /* From source.c */ extern int openp PARAMS ((char *, int, char *, int, int, char **)); @@ -1119,4 +1111,12 @@ extern int use_windows; #define PIDGET(pid) (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 + #endif /* #ifndef DEFS_H */ |