mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #58] VC++ 2010 and earlier don't define snprintf #49
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#49
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/58
Originally assigned to: @jmcnamara on GitHub.
Unfortunately MSVC++ 2010 and earlier don't define the function
snprintf... and what's worse, the function_snprintfprovided by MSVC++ 2010 can't be used as a replacement, since it behaves differently thansnprintf. One way to solve the problem is to define a function with the proper behaviour in the header filecommon.hoflibxlsxwriter. After line 235 add the following code:This makes
libxlsxwriteroperational with MSVC++ 2010 and earlier.@jmcnamara commented on GitHub (Jul 4, 2016):
Added to master.
@jmcnamara commented on GitHub (Jul 4, 2016):
Fixed in release 0.4.0. Thanks for the report.