/[path-sandbox]/trunk/localdecls.h
Gentoo

Contents of /trunk/localdecls.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 369 - (hide annotations) (download) (as text)
Sun Nov 9 09:48:28 2008 UTC (5 years, 9 months ago) by vapier
File MIME type: text/x-chdr
File size: 1523 byte(s)
cleanup whitespace and comments -- no functional changes
1 vapier 23 /*
2     * File: localdecls.h
3     *
4     * Copyright 1999-2004 Gentoo Foundation
5     * Distributed under the terms of the GNU General Public License v2
6     */
7    
8     #ifndef __LOCALDECLS_H__
9     #define __LOCALDECLS_H__
10    
11     /* take care of broken ld loading */
12 vapier 63 #if defined(__GLIBC__) && !defined(__UCLIBC__)
13 vapier 23
14     # if __GLIBC__ <= 2 && __GLIBC_MINOR__ <= 2
15     # define BROKEN_RTLD_NEXT
16     # define LIBC 5
17     # endif
18    
19     # if !defined(BROKEN_RTLD_NEXT)
20     # if defined(__mips__)
21     # define BROKEN_RTLD_NEXT
22     # endif
23     # endif
24    
25 azarah 224 #else
26    
27     #if 0
28     # if defined(__FreeBSD__)
29     # define BROKEN_RTLD_NEXT
30     # endif
31 vapier 23 #endif
32    
33 azarah 224 #endif
34    
35 vapier 23 #define GLIBC_MINOR __GLIBC_MINOR__
36    
37     #ifdef PATH_MAX
38     # define SB_PATH_MAX PATH_MAX * 2
39     # if (SB_PATH_MAX >= INT_MAX) || (SB_PATH_MAX < PATH_MAX)
40     # undef SB_PATH_MAX
41     # define SB_PATH_MAX PATH_MAX + 25
42     # if (SB_PATH_MAX >= INT_MAX) || (SB_PATH_MAX < PATH_MAX)
43     # error SB_PATH_MAX too big!
44     # endif
45     # endif
46     #else
47     # error PATH_MAX not defined!
48     #endif
49    
50 azarah 182 #if !HAVE_DLVSYM
51 azarah 187 # define dlvsym(_lib, _sym, _ver) dlsym(_lib, _sym)
52 azarah 43 #endif
53 azarah 182
54 azarah 183 #if HAVE_DLVSYM
55 azarah 187 /* Taken from glibc */
56     # define symbol_version(_real, _name, _version) \
57     __asm__ (".symver " #_real "," #_name "@" #_version)
58     # define default_symbol_version(_real, _name, _version) \
59     __asm__ (".symver " #_real "," #_name "@@" #_version)
60 azarah 183 #endif
61 azarah 182
62 azarah 187 /* Taken from glibc */
63     # define strong_alias(_name, _aliasname) \
64     extern __typeof (_name) _aliasname __attribute__ ((alias (#_name)));
65 azarah 214 # define weak_alias(_name, _aliasname) \
66     extern __typeof (_name) _aliasname __attribute__ ((weak, alias (#_name)));
67 azarah 187
68    
69 azarah 182 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20