Author: Adam <git@apiote.tk>
set explicit c language standard version
meowsum.c | 3 +++ mkfile | 2 +-
diff --git a/meowsum.c b/meowsum.c index e8536a22ab47ab42e2ee40b17c46a5deff3faca6..d98caf796afa691362eee9bb8179fdbd51503947 100644 --- a/meowsum.c +++ b/meowsum.c @@ -1,3 +1,5 @@ +#define _POSIX_C_SOURCE 200809L + #include "meow_hash_x64_aesni.h" #define BUFFER_SIZE 8192 @@ -10,6 +12,7 @@ #include#include <stdbool.h> #include <stdio.h> #include <stdlib.h> +#include <stdint.h> #include <string.h> #include <sys/types.h> #include <unistd.h> diff --git a/mkfile b/mkfile index 4b8a89c7fd6e254adcbf2b7ecdbe52192a250a7b..58754aa419ba704953fd6f85b97d4a05aa205164 100644 --- a/mkfile +++ b/mkfile @@ -1,7 +1,7 @@ all:V: meowsum meowsum.1 meowsum: meowsum.c - clang -O3 -mavx -maes -pedantic -Wall -o meowsum meowsum.c + clang -O3 -mavx -maes -pedantic -Wall -std=c17 -o meowsum meowsum.c meowsum.1: meowsum.1.scd scdoc < meowsum.1.scd > meowsum.1