projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
34abd68
)
Only g++ supports variable-size arrays nowadays.
author
Bruno Haible
<bruno@clisp.org>
Wed, 25 Oct 2006 16:56:37 +0000
(16:56 +0000)
committer
Bruno Haible
<bruno@clisp.org>
Wed, 25 Oct 2006 16:56:37 +0000
(16:56 +0000)
ChangeLog
patch
|
blob
|
history
lib/gettext.h
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index b3cc38c9bf49fa0a41f47dab84d9c64e95c5b5d7..970fd22528943d39f2af058b1d49658c8c44dbfd 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,7
+1,7
@@
2006-10-25 Bruno Haible <bruno@clisp.org>
* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2006-10-25 Bruno Haible <bruno@clisp.org>
* lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
- false for
PGI C++ and Sun
C++ compilers.
+ false for
non-gcc
C++ compilers.
Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2006-10-24 Bruno Haible <bruno@clisp.org>
Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2006-10-24 Bruno Haible <bruno@clisp.org>
diff --git
a/lib/gettext.h
b/lib/gettext.h
index 6e4d5ead8b5dbb8bf53ac5f655f9a251118742a7..de3850cd754bda7423b3fe75ea7cc7606d5cd2c0 100644
(file)
--- a/
lib/gettext.h
+++ b/
lib/gettext.h
@@
-167,8
+167,7
@@
npgettext_aux (const char *domain,
ISO C++ supports variable-size arrays, but some older PGI and Sun compilers
don't. */
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
ISO C++ supports variable-size arrays, but some older PGI and Sun compilers
don't. */
#define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS \
- (__GNUC__ >= 3 \
- || (defined __cplusplus && !(defined __PGI || defined __SUNPRO_CC)))
+ (__GNUC__ >= 3 || (defined __cplusplus && defined __GNUC__))
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
#include <stdlib.h>
#if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
#include <stdlib.h>