aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/maxlen.h
blob: e1ff7f500869274cade6dd81fe384f603b865e62 (plain) (blame)
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
#pragma once

#include <cstdlib>

// http://support.microsoft.com/kb/208427
#ifndef URL_MAXLEN
    #define URL_MAXLEN 2083
#endif

#define HOST_MAX 260
#ifndef URL_MAX
    #define URL_MAX 1024
#endif
#define FULLURL_MAX (URL_MAX + HOST_MAX)

#define LINKTEXT_MAX 1024

#ifdef WIN32
    #ifndef PATH_MAX
        #define PATH_MAX _MAX_PATH
    #endif
#else

    #ifndef MAX_PATH
        #define MAX_PATH PATH_MAX
    #endif

    #ifndef _MAX_PATH
        #define _MAX_PATH PATH_MAX
    #endif

#endif