Mail Archives: cygwin/2013/01/11/16:47:44
Hello,
In order to compile some packages (including slang-2.2.4 and ccrypt-1.9)
with GCC-4.7.2, i had to patch /usr/include/string.h iaw the following:
diff -uNr x-o/usr/include/string.h x-p/usr/include/string.h
--- x-o/usr/include/string.h 2012-11-23 14:40:09.000000000 +0100
+++ x-p/usr/include/string.h 2013-01-11 22:29:39.000000000 +0100
@@ -64,13 +64,13 @@
char *_EXFUN(strcasestr,(const char *, const char *));
char *_EXFUN(strchrnul,(const char *, int));
#endif
-#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 500)
+#if !defined(__STRICT_ANSI__) || ((_XOPEN_SOURCE - 0) >= 500)
char *_EXFUN(strdup,(const char *));
#endif
#ifndef __STRICT_ANSI__
char *_EXFUN(_strdup_r,(struct _reent *, const char *));
#endif
-#if !defined(__STRICT_ANSI__) || (_XOPEN_SOURCE >= 700)
+#if !defined(__STRICT_ANSI__) || ((_XOPEN_SOURCE - 0) >= 700)
char *_EXFUN(strndup,(const char *, size_t));
#endif
#ifndef __STRICT_ANSI__
See also /usr/include/sys/features.h.
Otherwise i obtain the message:
/usr/include/string.h:67:49: error: operator '>=' has no left operand
/usr/include/string.h:73:49: error: operator '>=' has no left operand
Hope this helps,
Regards,
Denis Excoffier.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
- Raw text -