Mercurial > vim
comparison src/auto/configure @ 13726:d35b1702a1da v8.0.1735
patch 8.0.1735: flexible array member feature not supported by HP-UX
commit https://github.com/vim/vim/commit/285e3358696b1bc6296e5d4c53425680ce8fbd54
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 18 23:01:13 2018 +0200
patch 8.0.1735: flexible array member feature not supported by HP-UX
Problem: Flexible array member feature not supported by HP-UX. (John
Marriott)
Solution: Do not use the flexible array member feature of C99.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 18 Apr 2018 23:15:06 +0200 |
parents | 30f9ebe3e602 |
children | 603516b73349 |
comparison
equal
deleted
inserted
replaced
13725:25ffa5f27874 | 13726:d35b1702a1da |
---|---|
4186 #include <stdio.h> | 4186 #include <stdio.h> |
4187 int | 4187 int |
4188 main () | 4188 main () |
4189 { | 4189 { |
4190 | 4190 |
4191 struct with_flexible_member { | |
4192 int count; // comment | |
4193 char text[]; // another comment | |
4194 }; | |
4195 enum { | 4191 enum { |
4196 one, | 4192 one, // one comment |
4197 two, | 4193 two, // two comments |
4198 three, | 4194 three, // three comments |
4199 }; | 4195 }; |
4200 long long int a = 1; | 4196 long long int a = 1; |
4201 long long unsigned b = 2; | 4197 long long unsigned b = 2; |
4202 printf("a %lld and a %llu", a, b); | 4198 printf("a %lld and a %llu", a, b); |
4203 | 4199 |