* 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
* 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
# 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
#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 */
#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>