mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
add include guards
alleviate risks of double inclusion (typically via transitive includes)
This commit is contained in:
parent
1ec201c7b9
commit
b69d06a810
1 changed files with 6 additions and 0 deletions
|
|
@ -8,6 +8,10 @@
|
|||
# You may select, at your option, one of the above-listed licenses.
|
||||
# ################################################################
|
||||
|
||||
# Ensure the file is not included twice
|
||||
ifndef LIBZSTD_MK_INCLUDED
|
||||
LIBZSTD_MK_INCLUDED := 1
|
||||
|
||||
##################################################################
|
||||
# Input Variables
|
||||
##################################################################
|
||||
|
|
@ -223,3 +227,5 @@ endif # BUILD_DIR
|
|||
ZSTD_SUBDIR := $(LIBZSTD)/common $(LIBZSTD)/compress $(LIBZSTD)/decompress $(LIBZSTD)/dictBuilder $(LIBZSTD)/legacy $(LIBZSTD)/deprecated
|
||||
vpath %.c $(ZSTD_SUBDIR)
|
||||
vpath %.S $(ZSTD_SUBDIR)
|
||||
|
||||
endif # LIBZSTD_MK_INCLUDED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue