pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/47938: editors/emacs 24.3 DragonFly 3.5 xdisp.c expected specifier-qualifier-list before 'typedef'
The following reply was made to PR pkg/47938; it has been noted by GNATS.
From: Makoto Fujiwara <makoto%ki.nu@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/47938: editors/emacs 24.3 DragonFly 3.5 xdisp.c expected
specifier-qualifier-list before 'typedef'
Date: Mon, 24 Jun 2013 13:51:58 +0900
I don't know why (yet), and what will be the real fix at all,
but following change will package for this particular case
(#error is just a confirmation):
--- /usr/pkgsrc/editors/emacs24/work/emacs-24.3/lib/verify.h.orig
2013-06-24 13:34:47.000000000 +0900
+++ lib/verify.h 2013-06-24 13:32:47.000000000 +0900
@@ -39,6 +39,7 @@
# if (99 < __GNUC__) && defined __cplusplus
# define _GL_HAVE_STATIC_ASSERT 1
# endif
+#undef _GL_HAVE__STATIC_ASSERT
/* Each of these macros verifies that its argument R is nonzero. To
be portable, R should be an integer constant expression. Unlike
@@ -194,6 +195,7 @@
ordinary declaration, and cannot appear inside struct { ... }. */
# ifdef _GL_HAVE__STATIC_ASSERT
+#error
# define _GL_VERIFY _Static_assert
# else
# define _GL_VERIFY(R, DIAGNOSTIC) \
---
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.
A part of lib/verify.h:
24 /* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per
C11.
25 This is supported by GCC 4.6.0 and later, in C mode, and its use
26 here generates easier-to-read diagnostics when verify (R) fails.
27
28 Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per
C++11.
29 This will likely be supported by future GCC versions, in C++ mode.
30
31 Use this only with GCC. If we were willing to slow 'configure'
32 down we could also use it with other compilers, but since this
33 affects only the quality of diagnostics, why bother? */
34 # if (4 < __GNUC__ || (__GNUC__ == 4 && 6 <= __GNUC_MINOR__)) &&
!defined __cplusplus
35 # define _GL_HAVE__STATIC_ASSERT 1
36 # endif
37 /* The condition (99 < __GNUC__) is temporary, until we know about the
38 first G++ release that supports static_assert. */
39 # if (99 < __GNUC__) && defined __cplusplus
40 # define _GL_HAVE_STATIC_ASSERT 1
41 # endif
Home |
Main Index |
Thread Index |
Old Index