diff options
author | Kouhei Sutou <kou@clear-code.com> | 2016-09-22 15:21:04 (GMT) |
---|---|---|
committer | Kouhei Sutou <kou@clear-code.com> | 2016-09-22 15:39:45 (GMT) |
commit | 012c66536cdb93d9bcfa565fadaaf2a281c489b9 (patch) | |
tree | ae52c04f8f65798b3bcb13c56cd7f3628fe2cbd8 /lib/Makefile | |
parent | 3b9439ccd043fe5704af6528f3b3155cf6f8f0c4 (diff) | |
download | lz4-012c66536cdb93d9bcfa565fadaaf2a281c489b9.zip lz4-012c66536cdb93d9bcfa565fadaaf2a281c489b9.tar.gz lz4-012c66536cdb93d9bcfa565fadaaf2a281c489b9.tar.bz2 |
Add LZ4LIB_API
It's based on Zstandard's ZSTDLIB_API.
See also: https://github.com/Cyan4973/lz4/issues/216#issuecomment-226245432
Deprecated functions aren't LZ4LIB_API targets. Because we don't need to
export deprecated functions from now.
There are same LZ4LIB_API definitions in each header files instead of
including a common header file because LZ4_DEPRECATED is defined so.
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index b5352a0..a653b65 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -43,7 +43,7 @@ LIBVER := $(shell echo $(LIBVER_SCRIPT)) DESTDIR?= PREFIX ?= /usr/local -CPPFLAGS= -DXXH_NAMESPACE=LZ4_ +CPPFLAGS= -DXXH_NAMESPACE=LZ4_ -DLZ4_DLL_EXPORT=1 CFLAGS ?= -O3 CFLAGS += -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) |