From b878bd08ddf576a58374b8347fd0b3af1f3c921d Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Fri, 7 Jun 2019 15:30:30 -0400 Subject: [PATCH 1/3] Clean Up Temp Files Produced By playTests.sh --- tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 4ee684e0..684d6a1d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -247,7 +247,7 @@ clean: $(MAKE) -C $(ZSTDDIR) clean $(MAKE) -C $(PRGDIR) clean @$(RM) -fR $(TESTARTEFACT) - @$(RM) -f core *.o tmp* result* *.gcda dictionary *.zst \ + @$(RM) -f core *.o tmp* *.tmp result* *.gcda dictionary *.zst \ $(PRGDIR)/zstd$(EXT) $(PRGDIR)/zstd32$(EXT) \ fullbench$(EXT) fullbench32$(EXT) \ fullbench-lib$(EXT) fullbench-dll$(EXT) \ From d2c48042e6d44070ae5559cb2dfacec5ea791fc0 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Fri, 7 Jun 2019 15:31:33 -0400 Subject: [PATCH 2/3] Switch Macro Guarding lstat() --- programs/util.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/programs/util.c b/programs/util.c index 7b827d45..6190bca5 100644 --- a/programs/util.c +++ b/programs/util.c @@ -107,19 +107,11 @@ int UTIL_isSameFile(const char* file1, const char* file2) U32 UTIL_isLink(const char* infilename) { /* macro guards, as defined in : https://linux.die.net/man/2/lstat */ -#ifndef __STRICT_ANSI__ -#if defined(_BSD_SOURCE) \ - || (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)) \ - || (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) \ - || (defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)) \ - || (defined(__APPLE__) && defined(__MACH__)) \ - || defined(__OpenBSD__) \ - || defined(__FreeBSD__) +#if PLATFORM_POSIX_VERSION >= 200112L int r; stat_t statbuf; r = lstat(infilename, &statbuf); if (!r && S_ISLNK(statbuf.st_mode)) return 1; -#endif #endif (void)infilename; return 0; From d8970199f8cafb1d1536dd4fbf6c5801dc772b05 Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Mon, 10 Jun 2019 11:21:28 -0400 Subject: [PATCH 3/3] Add Contbuild Test for C99 Build --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0abdadb3..3d9c9d99 100644 --- a/.travis.yml +++ b/.travis.yml @@ -153,6 +153,12 @@ matrix: - make clean - make travis-install # just ensures `make install` works + - name: c99 compatibility + if: branch = master + script: + - make c99build + - make -C tests test-zstd + - name: PPC64 if: branch = master script: