* include/_mingw.h: Use only two underscores to uglify
__MINGW_ATTRIB_* macros. * include/stdlib.h: Adjust __MINGW_ATTRIB_* tokens. * includ/setjmp.h: Likewise. * include/sting.h: Add __MINGW_ATTRIB_PURE to locale-independent string functions. (_strdup, strdup): Add __MINGW_ATTRIB_MALLOC.
This commit is contained in:
@ -121,19 +121,19 @@
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ___MINGW_ATTRIB_NORETURN __attribute__ ((__noreturn__))
|
||||
#define ___MINGW_ATTRIB_CONST __attribute__ ((__const__))
|
||||
#define __MINGW_ATTRIB_NORETURN __attribute__ ((__noreturn__))
|
||||
#define __MINGW_ATTRIB_CONST __attribute__ ((__const__))
|
||||
#else
|
||||
#define ___MINGW_ATTRIB_NORETURN
|
||||
#define ___MINGW_ATTRIB_CONST
|
||||
#define __MINGW_ATTRIB_NORETURN
|
||||
#define __MINGW_ATTRIB_CONST
|
||||
#endif
|
||||
|
||||
#if ( __GNUC__ >= 3)
|
||||
#define ___MINGW_ATTRIB_MALLOC __attribute__ ((__malloc__))
|
||||
#define ___MINGW_ATTRIB_PURE __attribute__ ((__pure__))
|
||||
#define __MINGW_ATTRIB_MALLOC __attribute__ ((__malloc__))
|
||||
#define __MINGW_ATTRIB_PURE __attribute__ ((__pure__))
|
||||
#else
|
||||
#define ___MINGW_ATTRIB_MALLOC
|
||||
#define ___MINGW_ATTRIB_PURE
|
||||
#define __MINGW_ATTRIB_MALLOC
|
||||
#define __MINGW_ATTRIB_PURE
|
||||
#endif
|
||||
|
||||
#ifndef __MSVCRT_VERSION__
|
||||
|
Reference in New Issue
Block a user