Skip to content

Commit

Permalink
Fix build with gcc-6 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Esser authored and cxong committed Dec 28, 2016
1 parent 683d230 commit d617ef8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#else
#include <stdlib.h>
#include <unistd.h>
#endif


Expand All @@ -20,8 +23,6 @@ void make_temp_file(const char *prefix, char *out)
fclose(fopen(out, "w"));
}
#else
#include <stdlib.h>
#include <unistd.h>
sprintf(out, "%sXXXXXX", prefix);
close(mkstemp(out));
#endif
Expand Down

0 comments on commit d617ef8

Please sign in to comment.