mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #250] The macro "SLIST_ENTRY" is redefined #199
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#199
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 @ZChidori on GitHub (Nov 4, 2019).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/250
Originally assigned to: @jmcnamara on GitHub.
Question:The macro "SLIST_ENTRY" is redefined in winnt.h and third_party/queue.h,how to fix it?
@jmcnamara commented on GitHub (Nov 4, 2019):
What compiler and version are you using and what is your compilation target?
See also #57
@ZChidori commented on GitHub (Nov 4, 2019):
VS2008 and libxlsxwriter-release-0.8.7
@ZChidori commented on GitHub (Nov 4, 2019):
Well,my vs environment don't have base.h.
@jmcnamara commented on GitHub (Nov 4, 2019):
Are you trying to compile for WinNT?
Also, if you ignore the warning does the compilation work?
@ZChidori commented on GitHub (Nov 4, 2019):
No,doesn't affect my use,I just want to solve it.In any case,thanks.
@jmcnamara commented on GitHub (Nov 4, 2019):
Are you trying to compile for WinNT?
@jmcnamara commented on GitHub (Nov 4, 2019):
The
SLIST_ENTRYWindows macro should be undefined by libxlsxwriter to avoid this issue. See:https://github.com/jmcnamara/libxlsxwriter/blob/master/src/packager.c#L40
Since your overall compilation works I presume this code is included so I'm not sure why you are getting the warning.
Try add the following before you use
#include "xlsxwriter.h":