Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-05-23 07:30:01 +0400
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2011-05-23 07:30:01 +0400
commitec05c53dde2658e228197a928d156b57e5a25694 (patch)
treebd01256b3bc78cf993789656ae2aef2aa9ec6484 /winsup/mingw
parent79444310975ca42fe6c4e472317eac0830405b70 (diff)
2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc by wrapping the functions in brackets. Thanks to Kai Tietz for the report.
Diffstat (limited to 'winsup/mingw')
-rw-r--r--winsup/mingw/ChangeLog7
-rw-r--r--winsup/mingw/include/stdlib.h8
2 files changed, 11 insertions, 4 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 79e63eb6c..2b3dab4bd 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
+
+ * include/stdlib.h (_rotl, _lrotl, _rotr, _lrotr): Resolve conflict with gcc
+ by wrapping the functions in brackets.
+
+ Thanks to Kai Tietz for the report.
+
2011-05-22 A.B., Khalid <abkhd@users.sourceforge.net>
* Makefile.in: Add support for msvcr100.dll.
diff --git a/winsup/mingw/include/stdlib.h b/winsup/mingw/include/stdlib.h
index 55455a276..43326f412 100644
--- a/winsup/mingw/include/stdlib.h
+++ b/winsup/mingw/include/stdlib.h
@@ -440,10 +440,10 @@ _CRTIMP __int64 __cdecl __MINGW_NOTHROW _wtoi64(const wchar_t *);
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _i64tow(__int64, wchar_t *, int);
_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _ui64tow(unsigned __int64, wchar_t *, int);
-_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _rotl(unsigned int, int) __MINGW_ATTRIB_CONST;
-_CRTIMP unsigned int __cdecl __MINGW_NOTHROW _rotr(unsigned int, int) __MINGW_ATTRIB_CONST;
-_CRTIMP unsigned long __cdecl __MINGW_NOTHROW _lrotl(unsigned long, int) __MINGW_ATTRIB_CONST;
-_CRTIMP unsigned long __cdecl __MINGW_NOTHROW _lrotr(unsigned long, int) __MINGW_ATTRIB_CONST;
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW (_rotl)(unsigned int, int) __MINGW_ATTRIB_CONST;
+_CRTIMP unsigned int __cdecl __MINGW_NOTHROW (_rotr)(unsigned int, int) __MINGW_ATTRIB_CONST;
+_CRTIMP unsigned long __cdecl __MINGW_NOTHROW (_lrotl)(unsigned long, int) __MINGW_ATTRIB_CONST;
+_CRTIMP unsigned long __cdecl __MINGW_NOTHROW (_lrotr)(unsigned long, int) __MINGW_ATTRIB_CONST;
_CRTIMP int __cdecl __MINGW_NOTHROW _set_error_mode (int);