Skip to content

Commit ce570f0

Browse files
committed
Add version constraint for building against external library
1 parent 1db58a6 commit ce570f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

external_zstd.go

+6
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ package zstd
55

66
// #cgo CFLAGS: -DUSE_EXTERNAL_ZSTD
77
// #cgo pkg-config: libzstd
8+
/*
9+
#include<zstd.h>
10+
#if ZSTD_VERSION_NUMBER < 100400000
11+
#error "ZSTD version >= 1.4 is required ZSTD_VERSION_NUMBER"
12+
#endif
13+
*/
814
import "C"

0 commit comments

Comments
 (0)