Skip to content

Commit

Permalink
Merge pull request lz4#316 from inikep/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Cyan4973 authored Feb 10, 2017
2 parents f4b9c1d + c139eb4 commit 7e57c39
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ clean:
@echo Cleaning completed


#------------------------------------------------------------------------
#make install is validated only for Linux, OSX, kFreeBSD, Hurd and
#FreeBSD targets
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD DragonFly))
#-----------------------------------------------------------------------------
# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
#-----------------------------------------------------------------------------
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))
HOST_OS = POSIX

install:
Expand Down
3 changes: 1 addition & 2 deletions programs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ LZ4DIR := ../lib

SRCFILES := $(wildcard $(LZ4DIR)/*.c) $(wildcard *.c)
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
VOID := /dev/null

CPPFLAGS+= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
CFLAGS ?= -O3
Expand All @@ -60,10 +61,8 @@ MD2ROFF_FLAGS = --roff --warnings --manual="User Commands" --organization="lz4

# Define *.exe as extension for Windows systems
ifneq (,$(filter Windows%,$(OS)))
VOID := nul
EXT :=.exe
else
VOID := /dev/null
EXT :=
endif

Expand Down
6 changes: 4 additions & 2 deletions programs/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern "C" {
/* *********************************************************
* Turn on Large Files support (>4GB) for 32-bit Linux/Unix
***********************************************************/
#if !defined(__64BIT__) /* No point defining Large file for 64 bit */
#if !defined(__64BIT__) || defined(__MINGW32__) /* No point defining Large file for 64 bit but MinGW requires it */
# if !defined(_FILE_OFFSET_BITS)
# define _FILE_OFFSET_BITS 64 /* turn off_t into a 64-bit type for ftello, fseeko */
# endif
Expand All @@ -85,7 +85,9 @@ extern "C" {
# define PLATFORM_POSIX_VERSION 200112L
# else
# if defined(__linux__) || defined(__linux)
# define _POSIX_C_SOURCE 200112L /* use feature test macro */
# ifndef _POSIX_C_SOURCE
# define _POSIX_C_SOURCE 200112L /* use feature test macro */
# endif
# endif
# include <unistd.h> /* declares _POSIX_VERSION */
# if defined(_POSIX_VERSION) /* POSIX compliant */
Expand Down
6 changes: 3 additions & 3 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ versionsTest:
$(PYTHON) test-lz4-versions.py


#------------------------------------------------------------------------
#make test is validated only for Linux, OSX, kFreeBSD, FreeBSD, Hurd and
#Solaris targets
#-----------------------------------------------------------------------------
# make install is validated only for Linux, OSX, BSD, Hurd and Solaris targets
#-----------------------------------------------------------------------------
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS))

MD5:=md5sum
Expand Down

0 comments on commit 7e57c39

Please sign in to comment.