mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
Fix warnings
This commit is contained in:
parent
37656389c8
commit
1c33af68ce
1 changed files with 5 additions and 0 deletions
5
third_party/tmpfileplus/tmpfileplus.c
vendored
5
third_party/tmpfileplus/tmpfileplus.c
vendored
|
|
@ -99,6 +99,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
@ -268,9 +270,12 @@ FILE *tmpfileplus(const char *dir, const char *prefix, char **pathname, int keep
|
|||
char *tmpdir = NULL;
|
||||
const char *pfx = (prefix ? prefix : "tmp.");
|
||||
char *tempdirs[12] = { 0 };
|
||||
#ifdef _WIN32
|
||||
char env1[FILENAME_MAX+1] = { 0 };
|
||||
char env2[FILENAME_MAX+1] = { 0 };
|
||||
#else
|
||||
char env3[FILENAME_MAX+1] = { 0 };
|
||||
#endif
|
||||
int ntempdirs = 0;
|
||||
int i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue