mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
hark! a vagrant! get windows library linking
This commit is contained in:
parent
e5d77037dc
commit
1e2f3252bd
@ -83,11 +83,11 @@ set_package_properties(Threads PROPERTIES TYPE REQUIRED)
|
||||
find_package(ZLIB)
|
||||
set_package_properties(ZLIB PROPERTIES TYPE REQUIRED)
|
||||
# platform-specific logics
|
||||
if(NOT MSYS AND NOT APPLE)
|
||||
if(MSYS OR WIN32)
|
||||
set(LIBRT_LIBRARIES wsock32 ws2_32)
|
||||
elseif(NOT APPLE)
|
||||
find_library(LIBM m REQUIRED)
|
||||
find_library(LIBRT rt REQUIRED)
|
||||
elseif(MSYS)
|
||||
find_library(LIBRT ws2_32 REQUIRED)
|
||||
endif()
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
include_directories(/usr/local/include)
|
||||
|
@ -8,7 +8,7 @@ interp(struct notcurses* nc, int cellpixy, int cellpixx){
|
||||
size_t rands = cellpixy * cellpixx * 3;
|
||||
unsigned char* randrgb = malloc(rands);
|
||||
for(size_t r = 0 ; r < rands ; ++r){
|
||||
randrgb[r] = random() % 256;
|
||||
randrgb[r] = rand() % 256;
|
||||
}
|
||||
struct ncvisual* ncv = ncvisual_from_rgb_packed(randrgb, cellpixy, cellpixx * 3, cellpixx, 0xff);
|
||||
if(ncv == NULL){
|
||||
|
Loading…
x
Reference in New Issue
Block a user