1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-23 00:22:01 +00:00

In case native GCC is missing, inform user

This commit is contained in:
CTCaer 2020-12-20 21:34:43 +02:00
parent 52c65661d8
commit 2fba9848ae
3 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,9 @@
NATIVE_CC ?= gcc
ifeq (, $(shell which $(NATIVE_CC) 2>/dev/null))
$(error "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>")
endif
.PHONY: all clean
all: bin2c

View file

@ -1,5 +1,9 @@
NATIVE_CC ?= gcc
ifeq (, $(shell which $(NATIVE_CC) 2>/dev/null))
$(error "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>")
endif
.PHONY: all clean
all: lz77

View file

@ -33,7 +33,7 @@ int main(int argc, char *argv[])
if(stat(argv[1], &statbuf))
goto error;
if((in_file=fopen(argv[1], "r")) == NULL)
if((in_file=fopen(argv[1], "rb")) == NULL)
goto error;
strcpy(filename, argv[1]);