summaryrefslogtreecommitdiff
path: root/support/dktools/dk4mpl.h
blob: 7e20d707fc337f9391e7a8d24e1d752a6e77ee24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef DK4MPL_H_INCLUDED

/**	@file	dk4mpl.h	Definition of DK4_MAX_PATH
	(maximum path length).
*/

#ifndef DK4CONF_H_INCLUDED
#include "dk4conf.h"
#endif

#ifndef STDIO_H_INCLUDED
#include <stdio.h>
#define	STDIO_H_INCLUDED	1
#endif

#ifndef	STDLIB_H_INCLUDED
#include <stdlib.h>
#define	STDLIB_H_INCLUDED	1
#endif

#if DK4_HAVE_SYS_PARAM_H
#ifndef SYS_PARAM_H_INCLUDED
#include <sys/param.h>
#define	SYS_PARAM_H_INCLUDED	1
#endif
#endif

#if DK4_HAVE_LIMITS_H
#ifndef LIMITS_H_INCLUDED
#include <limits.h>
#define	LIMITS_H_INCLUDED	1
#endif
#endif

#if DK4_ON_WINDOWS
/**	Maximum path length including terminating character
	(definition to _MAX_PATH on Windows systems).
*/
#define	DK4_MAX_PATH	_MAX_PATH
#else
#ifdef MAXPATHLEN
/**	Maximum path length including terminating character
	(definition to MAXPATHLEN if defined).
*/
#define	DK4_MAX_PATH	MAXPATHLEN
#else
#ifdef PATH_MAX
/**	Maximum path length including terminating character
	(definition to PATH_MAX on Linux systems).
*/
#define	DK4_MAX_PATH	PATH_MAX
#else
/**	Maximum path length including terminating character.
*/
#define	DK4_MAX_PATH	1024
#endif
#endif
#endif

#define	DK4MPL_H_INCLUDED	1
#endif