diff --git a/Makefile b/Makefile index 43baa13449..fd876629bf 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ ifdef WIN32 else $(CC) $(CFLAGS) -std=gnu99 -w -o $(V) $(VC)/$(VCFILE) -lm -lpthread $(LDFLAGS) $(V) -o v2.exe $(VFLAGS) cmd/v - mv -f v2.exe v + mv -f v2.exe v endif @echo "V has been successfully built" @$(V) -version @@ -150,5 +150,5 @@ selfcompile-static: ### NB: Please keep this Makefile and make.bat simple. install: - @echo 'Please use `sudo v symlink` instead.' - + @echo 'Please use `sudo ./v symlink` instead.' + diff --git a/vlib/v/gen/c/cheaders.v b/vlib/v/gen/c/cheaders.v index c51ed84c51..7db49bde72 100644 --- a/vlib/v/gen/c/cheaders.v +++ b/vlib/v/gen/c/cheaders.v @@ -50,7 +50,6 @@ static inline void __sort_ptr(uintptr_t a[], bool b[], int l) { ' const c_common_macros = ' -//typedef unsigned char u8; #define EMPTY_VARG_INITIALIZATION 0 #define EMPTY_STRUCT_DECLARATION #define EMPTY_STRUCT_INITIALIZATION @@ -430,6 +429,7 @@ typedef int16_t i16; typedef int8_t i8; typedef uint64_t u64; typedef uint32_t u32; +typedef uint8_t u8; typedef uint16_t u16; typedef uint8_t byte; typedef uint32_t rune;