We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4062ae commit d058c56Copy full SHA for d058c56
Makefile
@@ -7,16 +7,10 @@ INSTALL ?= install
7
8
.PHONY: all test install bench
9
10
-OS := $(shell uname)
11
-
12
SRC := chash.c
13
OBJ := $(SRC:.c=.o)
14
15
-ifeq ($(OS), Darwin)
16
-C_SO_NAME := libchash.dylib
17
-else
18
C_SO_NAME := libchash.so
19
-endif
20
21
CFLAGS := -Wall -O3 -flto -g -DFP_RELAX=0 -DDEBUG
22
THE_CFLAGS := $(CFLAGS) -fPIC -MMD -fvisibility=hidden
chash.c
@@ -4,6 +4,10 @@
4
#include "chash.h"
5
6
+#ifndef u_char
+#define u_char unsigned char
+#endif
+
#define crc32_final(crc) \
crc ^= 0xffffffff
0 commit comments