fixed sleep, added cross-compile file for windows
Across_file.txt
@@ -0,0 +1,17 @@
[binaries]
c = '/usr/bin/x86_64-w64-mingw32-gcc'
ar = '/usr/x86_64-w64-mingw32/bin/ar'
strip = '/usr/bin/x86_64-w64-mingw32-strip'
exe_wrapper = 'wine'
[properties]
c_args = ['-std=gnu11', '-Wall', '-Wextra', '-Wpedantic']
c_link_args = []
needs_exe_wrapper = true
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
Minclude/cutils/misc.h
@@ -10,6 +10,6 @@
#include <windows.h>
#endif
void sleep_ms(int milliseconds);
void sleep_ms(unsigned int milliseconds);
uint32_t ntoh32(uint32_t const net);
#endif //MISC_H
Mmeson.build
@@ -1,7 +1,7 @@
project('cutils', 'c')
WARNINGS = ['-Wall', '-Wpedantic', '-Wextra', '-Wnull-dereference', '-Wshadow', '-Wconversion', '-Wstrict-prototypes', '-Wmissing-prototypes', '-Wcast-qual', '-Wstrict-overflow=5', '-Wunreachable-code', '-Wno-unused-parameter' ]
CFLAGS = ['-std=c11', '-fstrict-aliasing', '-fPIC'] + WARNINGS
CFLAGS = ['-std=gnu11', '-fstrict-aliasing', '-fPIC'] + WARNINGS
subdir('include')
subdir('src')