~ubuntu-branches/ubuntu/wily/gluegen2/wily

« back to all changes in this revision

Viewing changes to make/stub_includes/platform/glibc-compat-symbols.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-12-17 09:29:23 UTC
  • mfrom: (9.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20131217092923-19w78uqxd15jic2u
Tags: 2.1.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * Check build-in macro definitions via 'gcc -dM -E - < /dev/null'
17
17
 */
18
 
#if defined(__GNUC__) && !defined(__clang__)
19
 
    #if defined(__arm__)
20
 
       #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.4");
21
 
    #elif defined(__amd64__)
22
 
       #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
 
18
#if defined(__linux__) /* Actually we like to test whether we link against GLIBC .. */
 
19
    #if defined(__GNUC__) || defined(__clang__)
 
20
        #if defined(__arm__)
 
21
           #define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.4");
 
22
        #elif defined(__amd64__)
 
23
           #define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
 
24
        #else
 
25
           #define GLIBC_COMPAT_SYMBOL(FFF) asm(".symver " #FFF "," #FFF "@GLIBC_2.0");
 
26
        #endif /*__amd64__*/
23
27
    #else
24
 
       #define GLIBC_COMPAT_SYMBOL(FFF) __asm__(".symver " #FFF "," #FFF "@GLIBC_2.2.5");
25
 
    #endif /*__amd64__*/
 
28
        #warning GLIBC_COMPAT_SYMBOL not supported with current compiler on GNU/Linux
 
29
        #define GLIBC_COMPAT_SYMBOL(FFF)
 
30
    #endif
26
31
#else
27
 
    #warning GLIBC_COMPAT_SYMBOL not supported with current compiler
 
32
    #warning GLIBC_COMPAT_SYMBOL not supported with target OS
28
33
    #define GLIBC_COMPAT_SYMBOL(FFF)
29
34
#endif
30
35