1 /*
2  * Project    : ipv6calc
3  * File       : ipv6calc_inttypes.h
4  * Version    : $Id: 1e1de3c96fcbbfff597a3fad0b40436ba6cfa683 $
5  * Copyright  : 2002-2021 by Peter Bieringer <pb (at) bieringer.de>
6  *
7  * Information:
8  *  Common header file to define inttypes like uint8_t and other basics
9  */
10 
11 #ifndef _ipv6calc_inttypes_h
12 
13 #define _ipv6calc_inttypes_h 1
14 
15 
16 #if defined(__linux__)
17 /* Linux/glibc has no inttypes.h */
18 #include <stdint.h>
19 #else
20 /* Should catch all *BSD, others, too */
21 #include <inttypes.h>
22 #include <sys/types.h>
23 #endif
24 
25 
26 /* max string length */
27 #define IPV6CALC_STRING_MAX		1024
28 #define IPV6CALC_ADDR_STRING_MAX	256
29 #define IPV6CALC_SCOPEID_STRING_MAX	64
30 #define IPV6CALC_COUNTRYCODE_STRING_MAX	16
31 
32 
33 #include <limits.h>
34 
35 #ifndef PATH_MAX
36 #define PATH_MAX			1024 // fallback
37 #warning "system include files missing definition of PATH_MAX -> use fallback"
38 #endif
39 
40 #endif // _ipv6calc_inttypes_h
41