+1
-1
@@ -33,7 +33,7 @@ dependencies:
|
|||||||
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-zstream && make clean; fi
|
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-zstream && make clean; fi
|
||||||
- |
|
- |
|
||||||
if [[ "$CIRCLE_NODE_INDEX" == "0" ]]; then make -C tests test-zstd && make clean; fi
|
if [[ "$CIRCLE_NODE_INDEX" == "0" ]]; then make -C tests test-zstd && make clean; fi
|
||||||
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-fuzzer && make clean; fi
|
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-fuzzer FUZZERTEST=-T4mn && make clean; fi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
|
|||||||
+1
-2
@@ -67,9 +67,8 @@ endif
|
|||||||
|
|
||||||
# zlib detection
|
# zlib detection
|
||||||
VOID = /dev/null
|
VOID = /dev/null
|
||||||
HAVE_ZLIB := $(shell printf '\#include <zlib.h>\nint main(){}' | $(CC) -o have_zlib -x c - -lz 2> $(VOID) && echo 1 || echo 0)
|
HAVE_ZLIB := $(shell printf '\#include <zlib.h>\nint main(){}' | $(CC) -o have_zlib -x c - -lz 2> $(VOID) && rm have_zlib$(EXT) && echo 1 || echo 0)
|
||||||
ifeq ($(HAVE_ZLIB), 1)
|
ifeq ($(HAVE_ZLIB), 1)
|
||||||
TEMP := $(shell rm have_zlib$(EXT))
|
|
||||||
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
ZLIBCPP = -DZSTD_GZCOMPRESS -DZSTD_GZDECOMPRESS
|
||||||
ZLIBLD = -lz
|
ZLIBLD = -lz
|
||||||
endif
|
endif
|
||||||
|
|||||||
+17
-3
@@ -39,6 +39,20 @@ extern "C" {
|
|||||||
#include "mem.h" /* U32, U64 */
|
#include "mem.h" /* U32, U64 */
|
||||||
|
|
||||||
|
|
||||||
|
/* ************************************************************
|
||||||
|
* Avoid fseek()'s 2GiB barrier with MSVC, MacOS, *BSD, MinGW
|
||||||
|
***************************************************************/
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1400)
|
||||||
|
# define UTIL_fseek _fseeki64
|
||||||
|
#elif !defined(__64BIT__) && (PLATFORM_POSIX_VERSION >= 200112L) /* No point defining Large file for 64 bit */
|
||||||
|
# define UTIL_fseek fseeko
|
||||||
|
#elif defined(__MINGW32__) && defined(__MSVCRT__) && !defined(__STRICT_ANSI__) && !defined(__NO_MINGW_LFS)
|
||||||
|
# define UTIL_fseek fseeko64
|
||||||
|
#else
|
||||||
|
# define UTIL_fseek fseek
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*-****************************************
|
/*-****************************************
|
||||||
* Sleep functions: Windows - Posix - others
|
* Sleep functions: Windows - Posix - others
|
||||||
******************************************/
|
******************************************/
|
||||||
@@ -255,7 +269,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
|
|||||||
{
|
{
|
||||||
char* path;
|
char* path;
|
||||||
int dirLength, fnameLength, pathLength, nbFiles = 0;
|
int dirLength, fnameLength, pathLength, nbFiles = 0;
|
||||||
WIN32_FIND_DATA cFile;
|
WIN32_FIND_DATAA cFile;
|
||||||
HANDLE hFile;
|
HANDLE hFile;
|
||||||
|
|
||||||
dirLength = (int)strlen(dirName);
|
dirLength = (int)strlen(dirName);
|
||||||
@@ -267,7 +281,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
|
|||||||
path[dirLength+1] = '*';
|
path[dirLength+1] = '*';
|
||||||
path[dirLength+2] = 0;
|
path[dirLength+2] = 0;
|
||||||
|
|
||||||
hFile=FindFirstFile(path, &cFile);
|
hFile=FindFirstFileA(path, &cFile);
|
||||||
if (hFile == INVALID_HANDLE_VALUE) {
|
if (hFile == INVALID_HANDLE_VALUE) {
|
||||||
fprintf(stderr, "Cannot open directory '%s'\n", dirName);
|
fprintf(stderr, "Cannot open directory '%s'\n", dirName);
|
||||||
return 0;
|
return 0;
|
||||||
@@ -304,7 +318,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(path);
|
free(path);
|
||||||
} while (FindNextFile(hFile, &cFile));
|
} while (FindNextFileA(hFile, &cFile));
|
||||||
|
|
||||||
FindClose(hFile);
|
FindClose(hFile);
|
||||||
return nbFiles;
|
return nbFiles;
|
||||||
|
|||||||
Reference in New Issue
Block a user