Changeset View
Changeset View
Standalone View
Standalone View
contrib/xz/src/common/sysdefs.h
Show All 10 Lines | |||||
// This file has been put into the public domain. | // This file has been put into the public domain. | ||||
// You can do whatever you want with this file. | // You can do whatever you want with this file. | ||||
// | // | ||||
/////////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////////// | ||||
#ifndef LZMA_SYSDEFS_H | #ifndef LZMA_SYSDEFS_H | ||||
#define LZMA_SYSDEFS_H | #define LZMA_SYSDEFS_H | ||||
#ifdef _KERNEL | |||||
#include <sys/param.h> | |||||
#include <sys/endian.h> | |||||
#include <sys/libkern.h> | |||||
#include <sys/limits.h> | |||||
#include <sys/stdint.h> | |||||
#include <sys/systm.h> | |||||
#include <machine/_inttypes.h> | |||||
#define assert(c, ...) if (!(c)) panic(__VA_ARGS__) | |||||
#define HAVE_CHECK_CRC64 1 | |||||
#define HAVE_VISIBILITY 1 | |||||
#define LZMA_MANUAL_HEADERS 1 | |||||
#else /* !_KERNEL */ | |||||
////////////// | ////////////// | ||||
// Includes // | // Includes // | ||||
////////////// | ////////////// | ||||
#ifdef HAVE_CONFIG_H | #ifdef HAVE_CONFIG_H | ||||
# include <config.h> | # include <config.h> | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
#if defined(_WIN32) && defined(_MSC_VER) | #if defined(_WIN32) && defined(_MSC_VER) | ||||
# ifndef inline | # ifndef inline | ||||
# define inline __inline | # define inline __inline | ||||
# endif | # endif | ||||
# ifndef restrict | # ifndef restrict | ||||
# define restrict __restrict | # define restrict __restrict | ||||
# endif | # endif | ||||
#endif | #endif | ||||
#endif /* _KERNEL */ | |||||
//////////// | //////////// | ||||
// Macros // | // Macros // | ||||
//////////// | //////////// | ||||
#undef memzero | #undef memzero | ||||
#define memzero(s, n) memset(s, 0, n) | #define memzero(s, n) memset(s, 0, n) | ||||
Show All 17 Lines |