mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
Disable __attribute__ ((cold)) on MinGW
* src/conf_post.h (ATTRIBUTE_COLD) [__MINGW32__]: Define to empty on this platform.
This commit is contained in:
parent
7c7ee1dd52
commit
6ae0a50bc8
@ -59,7 +59,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
|
|||||||
into the same 1-, 2-, or 4-byte allocation unit in the MinGW
|
into the same 1-, 2-, or 4-byte allocation unit in the MinGW
|
||||||
builds. It was also needed to port to pre-C99 compilers, although
|
builds. It was also needed to port to pre-C99 compilers, although
|
||||||
we don't care about that any more. */
|
we don't care about that any more. */
|
||||||
#if NS_IMPL_GNUSTEP || defined(__MINGW32__)
|
#if NS_IMPL_GNUSTEP || defined __MINGW32__
|
||||||
typedef unsigned int bool_bf;
|
typedef unsigned int bool_bf;
|
||||||
#else
|
#else
|
||||||
typedef bool bool_bf;
|
typedef bool bool_bf;
|
||||||
@ -225,7 +225,9 @@ extern void _DebPrint (const char *fmt, ...);
|
|||||||
extern char *emacs_getenv_TZ (void);
|
extern char *emacs_getenv_TZ (void);
|
||||||
extern int emacs_setenv_TZ (char const *);
|
extern int emacs_setenv_TZ (char const *);
|
||||||
|
|
||||||
#if __has_attribute (cold)
|
/* Avoid __attribute__ ((cold)) on MinGW; see thread starting at
|
||||||
|
<https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>. */
|
||||||
|
#if __has_attribute (cold) && !defined __MINGW32__
|
||||||
# define ATTRIBUTE_COLD __attribute__ ((cold))
|
# define ATTRIBUTE_COLD __attribute__ ((cold))
|
||||||
#else
|
#else
|
||||||
# define ATTRIBUTE_COLD
|
# define ATTRIBUTE_COLD
|
||||||
|
Loading…
Reference in New Issue
Block a user