Change stdlib includes to linux includes
This commit is contained in:
parent
b3b41d0f6d
commit
be7da5d98b
@ -11,7 +11,7 @@
|
|||||||
#define ZSTD_H_235446
|
#define ZSTD_H_235446
|
||||||
|
|
||||||
/* ====== Dependency ======*/
|
/* ====== Dependency ======*/
|
||||||
#include <stddef.h> /* size_t */
|
#include <linux/types.h> /* size_t */
|
||||||
|
|
||||||
|
|
||||||
/* ===== ZSTDLIB_API : control library symbols visibility ===== */
|
/* ===== ZSTDLIB_API : control library symbols visibility ===== */
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
/* ****************************************
|
/* ****************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
******************************************/
|
******************************************/
|
||||||
#include <stddef.h> /* size_t */
|
#include <linux/types.h> /* size_t */
|
||||||
#include "zstd_errors.h" /* enum list */
|
#include "zstd_errors.h" /* enum list */
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
/*-*****************************************
|
/*-*****************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
******************************************/
|
******************************************/
|
||||||
#include <stddef.h> /* size_t, ptrdiff_t */
|
#include <linux/types.h> /* size_t, ptrdiff_t */
|
||||||
|
|
||||||
|
|
||||||
/*-*****************************************
|
/*-*****************************************
|
||||||
|
@ -41,9 +41,7 @@
|
|||||||
/* **************************************************************
|
/* **************************************************************
|
||||||
* Includes
|
* Includes
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
#include <stdlib.h> /* malloc, free, qsort */
|
#include <linux/string.h> /* memcpy, memset */
|
||||||
#include <string.h> /* memcpy, memset */
|
|
||||||
#include <stdio.h> /* printf (debug) */
|
|
||||||
#include "bitstream.h"
|
#include "bitstream.h"
|
||||||
#define FSE_STATIC_LINKING_ONLY
|
#define FSE_STATIC_LINKING_ONLY
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
|
@ -42,8 +42,7 @@
|
|||||||
/* **************************************************************
|
/* **************************************************************
|
||||||
* Includes
|
* Includes
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
#include <stdlib.h> /* malloc, free, qsort */
|
#include <linux/string.h> /* memcpy, memset */
|
||||||
#include <string.h> /* memcpy, memset */
|
|
||||||
#include "bitstream.h"
|
#include "bitstream.h"
|
||||||
#define FSE_STATIC_LINKING_ONLY
|
#define FSE_STATIC_LINKING_ONLY
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/* *** Dependencies *** */
|
/* *** Dependencies *** */
|
||||||
#include <stddef.h> /* size_t */
|
#include <linux/types.h> /* size_t */
|
||||||
|
|
||||||
|
|
||||||
/* *** simple functions *** */
|
/* *** simple functions *** */
|
||||||
|
@ -36,8 +36,7 @@
|
|||||||
/* **************************************************************
|
/* **************************************************************
|
||||||
* Includes
|
* Includes
|
||||||
****************************************************************/
|
****************************************************************/
|
||||||
#include <string.h> /* memcpy, memset */
|
#include <linux/string.h> /* memcpy, memset */
|
||||||
#include <stdio.h> /* printf (debug) */
|
|
||||||
#include "bitstream.h"
|
#include "bitstream.h"
|
||||||
#define FSE_STATIC_LINKING_ONLY /* FSE_optimalTableLog_internal */
|
#define FSE_STATIC_LINKING_ONLY /* FSE_optimalTableLog_internal */
|
||||||
#include "fse.h" /* header compression */
|
#include "fse.h" /* header compression */
|
||||||
|
@ -13,8 +13,8 @@
|
|||||||
/*-****************************************
|
/*-****************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
******************************************/
|
******************************************/
|
||||||
#include <stddef.h> /* size_t, ptrdiff_t */
|
#include <linux/types.h> /* size_t, ptrdiff_t */
|
||||||
#include <string.h> /* memcpy */
|
#include <linux/string.h> /* memcpy */
|
||||||
|
|
||||||
|
|
||||||
/*-****************************************
|
/*-****************************************
|
||||||
@ -30,7 +30,6 @@ MEM_STATIC void MEM_check(void) { MEM_STATIC_ASSERT((sizeof(size_t)==4) || (size
|
|||||||
/*-**************************************************************
|
/*-**************************************************************
|
||||||
* Basic Types
|
* Basic Types
|
||||||
*****************************************************************/
|
*****************************************************************/
|
||||||
#include <stdint.h>
|
|
||||||
typedef uint8_t BYTE;
|
typedef uint8_t BYTE;
|
||||||
typedef uint16_t U16;
|
typedef uint16_t U16;
|
||||||
typedef int16_t S16;
|
typedef int16_t S16;
|
||||||
|
@ -67,11 +67,10 @@
|
|||||||
***************************************/
|
***************************************/
|
||||||
/* Modify the local functions below should you wish to use some other memory routines */
|
/* Modify the local functions below should you wish to use some other memory routines */
|
||||||
/* for malloc(), free() */
|
/* for malloc(), free() */
|
||||||
#include <stdlib.h>
|
|
||||||
static void* XXH_malloc(size_t s) { return malloc(s); }
|
static void* XXH_malloc(size_t s) { return malloc(s); }
|
||||||
static void XXH_free (void* p) { free(p); }
|
static void XXH_free (void* p) { free(p); }
|
||||||
/* for memcpy() */
|
/* for memcpy() */
|
||||||
#include <string.h>
|
#include <linux/string.h>
|
||||||
static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); }
|
static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); }
|
||||||
|
|
||||||
#ifndef XXH_STATIC_LINKING_ONLY
|
#ifndef XXH_STATIC_LINKING_ONLY
|
||||||
|
@ -71,7 +71,7 @@ XXH32 6.8 GB/s 6.0 GB/s
|
|||||||
/* ****************************
|
/* ****************************
|
||||||
* Definitions
|
* Definitions
|
||||||
******************************/
|
******************************/
|
||||||
#include <stddef.h> /* size_t */
|
#include <linux/types.h> /* size_t */
|
||||||
typedef enum { XXH_OK=0, XXH_ERROR } XXH_errorcode;
|
typedef enum { XXH_OK=0, XXH_ERROR } XXH_errorcode;
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
/*-*************************************
|
/*-*************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
***************************************/
|
***************************************/
|
||||||
#include <stdlib.h> /* malloc */
|
|
||||||
#include "error_private.h"
|
#include "error_private.h"
|
||||||
#define ZSTD_STATIC_LINKING_ONLY
|
#define ZSTD_STATIC_LINKING_ONLY
|
||||||
#include "zstd.h" /* declaration of ZSTD_isError, ZSTD_getErrorName, ZSTD_getErrorCode, ZSTD_getErrorString, ZSTD_versionNumber */
|
#include "zstd.h" /* declaration of ZSTD_isError, ZSTD_getErrorName, ZSTD_getErrorCode, ZSTD_getErrorString, ZSTD_versionNumber */
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
/*-*************************************
|
/*-*************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
***************************************/
|
***************************************/
|
||||||
#include <string.h> /* memset */
|
#include <linux/string.h> /* memset */
|
||||||
#include "mem.h"
|
#include "mem.h"
|
||||||
#define FSE_STATIC_LINKING_ONLY /* FSE_encodeSymbol */
|
#define FSE_STATIC_LINKING_ONLY /* FSE_encodeSymbol */
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
/*-*******************************************************
|
/*-*******************************************************
|
||||||
* Dependencies
|
* Dependencies
|
||||||
*********************************************************/
|
*********************************************************/
|
||||||
#include <string.h> /* memcpy, memmove, memset */
|
#include <linux/string.h> /* memcpy, memmove, memset */
|
||||||
#include "mem.h" /* low level memory routines */
|
#include "mem.h" /* low level memory routines */
|
||||||
#define FSE_STATIC_LINKING_ONLY
|
#define FSE_STATIC_LINKING_ONLY
|
||||||
#include "fse.h"
|
#include "fse.h"
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#define ZSTD_ERRORS_H_398273423
|
#define ZSTD_ERRORS_H_398273423
|
||||||
|
|
||||||
/*===== dependency =====*/
|
/*===== dependency =====*/
|
||||||
#include <stddef.h> /* size_t */
|
#include <linux/types.h> /* size_t */
|
||||||
|
|
||||||
|
|
||||||
/* ===== ZSTDERRORLIB_API : control library symbols visibility ===== */
|
/* ===== ZSTDERRORLIB_API : control library symbols visibility ===== */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user