diff options
Diffstat (limited to 'gdb/rdi-share/host.h')
-rw-r--r-- | gdb/rdi-share/host.h | 16 |
1 files changed, 8 insertions, 8 deletions
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 */ |