Browse Source

Merge pull request #52 from Gustav-Simonsson/fixes_for_linux_and_windows_builds

Fixes for linux and windows builds
cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
0230deffa2
  1. 2
      io.h
  2. 2
      io_win32.c

2
io.h

@ -50,7 +50,7 @@ enum ethash_io_rc {
// small hack for windows. I don't feel I should use va_args and forward just
// to have this one function properly cross-platform abstracted
#if defined(_WIN32)
#if defined(_WIN32) && !defined(__GNUC__)
#define snprintf(...) sprintf_s(__VA_ARGS__)
#endif

2
io_win32.c

@ -25,7 +25,7 @@
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <Shlobj.h>
#include <shlobj.h>
FILE* ethash_fopen(char const* file_name, char const* mode)
{

Loading…
Cancel
Save