Skip to content

Commit

Permalink
Clearly specify the platform where utils.c is used
Browse files Browse the repository at this point in the history
  • Loading branch information
LefterisJP committed Apr 29, 2015
1 parent 20c1c6e commit 2f76e17
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ethash.go
Expand Up @@ -3,11 +3,11 @@ package ethash
/*
#cgo CFLAGS: -std=gnu99 -Wall
#cgo LDFLAGS: -lm
#include "src/libethash/util.c"
#include "src/libethash/internal.c"
#include "src/libethash/sha3.c"
#include "src/libethash/io.c"
#ifdef _WIN32
#include "src/libethash/util_win32.c"
#include "src/libethash/io_win32.c"
#include "src/libethash/mmap_win32.c"
#else
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,7 +8,7 @@
'src/libethash/sha3.c']
if os.name == 'nt':
sources += [
'src/libethash/util.c',
'src/libethash/util_win32.c',
'src/libethash/io_win32.c',
'src/libethash/mmap_win32.c',
]
Expand Down
2 changes: 1 addition & 1 deletion src/libethash/CMakeLists.txt
Expand Up @@ -20,7 +20,7 @@ set(FILES util.h
data_sizes.h)

if (MSVC)
list(APPEND FILES util.c io_win32.c mmap_win32.c)
list(APPEND FILES util_win32.c io_win32.c mmap_win32.c)
else()
list(APPEND FILES io_posix.c)
endif()
Expand Down
File renamed without changes.

0 comments on commit 2f76e17

Please sign in to comment.