ReactOS 0.4.15-dev-5664-g3bf4ef6
limits.h
Go to the documentation of this file.
1/* @(#)limits.h 1.7 11/08/13 Copyright 2011 J. Schilling */
2/*
3 * Copyright (c) 2011 J. Schilling
4 */
5/*
6 * The contents of this file are subject to the terms of the
7 * Common Development and Distribution License, Version 1.0 only
8 * (the "License"). You may not use this file except in compliance
9 * with the License.
10 *
11 * See the file CDDL.Schily.txt in this distribution for details.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file CDDL.Schily.txt from this distribution.
15 */
16
17#ifndef _SCHILY_LIMITS_H
18#define _SCHILY_LIMITS_H
19
20#ifndef _SCHILY_MCONFIG_H
21#include <schily/mconfig.h>
22#endif
23
24#ifdef HAVE_LIMITS_H
25#ifndef _INCL_LIMITS_H
26#include <limits.h>
27#define _INCL_LIMITS_H
28#endif
29#endif
30
31#ifndef COLL_WEIGHTS_MAX
32#define COLL_WEIGHTS_MAX 2
33#endif
34
35#ifndef _POSIX2_LINE_MAX
36#define _POSIX2_LINE_MAX 2048
37#endif
38
39/*
40 * Include sys/param.h for PIPE_BUF
41 */
42#ifndef _SCHILY_PARAM_H
43#include <schily/param.h>
44#endif
45
46#ifndef PIPE_BUF
47#if defined(__MINGW32__) || defined(_MSC_VER)
48#define PIPE_BUF 5120
49#else
50#define PIPE_BUF 512
51#endif
52#endif /* PIPE_BUF */
53
54#endif /* _SCHILY_LIMITS_H */