Browse Source

Attempting to fix no symbols for static lib on MacOSX

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
7cf3fa0398
  1. 5
      CMakeLists.txt
  2. 3
      util.c

5
CMakeLists.txt

@ -10,8 +10,7 @@ if (NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
endif()
set(FILES util.c
util.h
set(FILES util.h
io.c
internal.c
ethash.h
@ -21,7 +20,7 @@ set(FILES util.c
data_sizes.h)
if (MSVC)
list(APPEND FILES io_win32.c mmap_win32.c)
list(APPEND FILES util.c io_win32.c mmap_win32.c)
else()
list(APPEND FILES io_posix.c)
endif()

3
util.c

@ -22,7 +22,6 @@
#include <stdio.h>
#include "util.h"
#ifdef _MSC_VER
// foward declare without all of Windows.h
__declspec(dllimport) void __stdcall OutputDebugStringA(char const* lpOutputString);
@ -37,5 +36,3 @@ void debugf(char const* str, ...)
buf[sizeof(buf)-1] = '\0';
OutputDebugStringA(buf);
}
#endif

Loading…
Cancel
Save