]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Avoid using VLA in optparse.c under Windows (MSC) 822/head
authorWolfgang Stöggl <c72578@yahoo.de>
Tue, 19 Sep 2017 14:48:39 +0000 (16:48 +0200)
committerWolfgang Stöggl <c72578@yahoo.de>
Tue, 19 Sep 2017 14:48:39 +0000 (16:48 +0200)
commit13b9c5b49ff6bc8ff7c617d30a94363b6fac7be8
tree18fd15bdae36ecc125679204cac2c7192b9fdd1d
parent3edebb80327c8713f1b8f61fc7999a0ea5a59880
Avoid using VLA in optparse.c under Windows (MSC)

- Fixes compilation errors, when building under Windows (e.g. VS2015):
  ..\src\optparse.c(195): error C2057: expected constant expression
  ..\src\optparse.c(195): error C2466: cannot allocate an array of
  constant size 0
  ..\src\optparse.c(195): error C2133: 'optstring': unknown size
- Variable length arrays are not currently supported in Visual Studio
- Use malloc() instead of variable length array in case of MSC
src/optparse.c