Merge pull request #4188 from facebook/qnx_include

blind fix for QNX
This commit is contained in:
Yann Collet
2024-11-10 12:34:05 -08:00
committed by GitHub
+6 -8
View File
@@ -11,23 +11,18 @@
#ifndef UTIL_H_MODULE #ifndef UTIL_H_MODULE
#define UTIL_H_MODULE #define UTIL_H_MODULE
#if defined (__cplusplus)
extern "C" {
#endif
/*-**************************************** /*-****************************************
* Dependencies * Dependencies
******************************************/ ******************************************/
#include "platform.h" /* PLATFORM_POSIX_VERSION, ZSTD_NANOSLEEP_SUPPORT, ZSTD_SETPRIORITY_SUPPORT */ #include "platform.h" /* PLATFORM_POSIX_VERSION, ZSTD_NANOSLEEP_SUPPORT, ZSTD_SETPRIORITY_SUPPORT */
#include <stddef.h> /* size_t, ptrdiff_t */ #include <stddef.h> /* size_t, ptrdiff_t */
#include <stdio.h> /* FILE */
#include <sys/types.h> /* stat, utime */ #include <sys/types.h> /* stat, utime */
#include <sys/stat.h> /* stat, chmod */ #include <sys/stat.h> /* stat, chmod */
#include "../lib/common/mem.h" /* U64 */ #include "../lib/common/mem.h" /* U64 */
/*-************************************************************ /*-************************************************************
* Avoid fseek()'s 2GiB barrier with MSVC, macOS, *BSD, MinGW * Fix fseek()'s 2GiB barrier with MSVC, macOS, *BSD, MinGW
***************************************************************/ ***************************************************************/
#if defined(_MSC_VER) && (_MSC_VER >= 1400) #if defined(_MSC_VER) && (_MSC_VER >= 1400)
# define UTIL_fseek _fseeki64 # define UTIL_fseek _fseeki64
@@ -39,7 +34,6 @@ extern "C" {
# define UTIL_fseek fseek # define UTIL_fseek fseek
#endif #endif
/*-************************************************* /*-*************************************************
* Sleep & priority functions: Windows - Posix - others * Sleep & priority functions: Windows - Posix - others
***************************************************/ ***************************************************/
@@ -88,6 +82,10 @@ extern "C" {
#endif #endif
#if defined (__cplusplus)
extern "C" {
#endif
/*-**************************************** /*-****************************************
* Console log * Console log
******************************************/ ******************************************/