aboutsummaryrefslogblamecommitdiffstats
path: root/util/system/maxlen.h
blob: e1ff7f500869274cade6dd81fe384f603b865e62 (plain) (tree)
1
2
3
4
5
6
7
8
9
            
 
                  
                                         
                           
      
                    
               
                        
      
                                        
 
                         
 
            

                                  
     
 

                                 
 

                                  
      
#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