mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #60] Another MSVC++ 2010 issue with variable declaration in packager.c #50
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @utelle on GitHub (Jul 4, 2016).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/60
Originally assigned to: @jmcnamara on GitHub.
Since MSVC++ 2010 does not support the C99 standard, variable declaration have to be placed at the beginning of scope block. Therefore
packager.cdoesn't compile properly due to lines 58 and 59 declaring a variable after some executable code:This is allowed for C99, but not for C89. Moving these 2 lines a bit up, for example just below line 47
solves the problem.
@jmcnamara commented on GitHub (Jul 4, 2016):
Fixed on master.
@jmcnamara commented on GitHub (Jul 4, 2016):
Fixed in release 0.4.0. Thanks for the report.