Changeset 3357 in CLRX


Ignore:
Timestamp:
Sep 12, 2017, 4:10:59 PM (13 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Remove obsolete warnings (about unsupported visibility attributes) for Cygwin environment
(from clwrapper InternalDecls?.h). Remove obsolete compilation when GNUC is not defined (in InternalDecls?.h).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/clwrapper/InternalDecls.h

    r2682 r3357  
    2525#endif
    2626
    27 #if __GNUC__ >= 4
     27#if __GNUC__ >= 4 && !defined(__CYGWIN__)
    2828#  define CLRX_CL_INTERNAL_DECLSYM(NAME) extern decltype(NAME) clrx##NAME \
    2929        __attribute__((visibility("hidden")));
     
    3131#  define CLRX_CL_PUBLIC_SYM(NAME) decltype(NAME) NAME \
    3232        __attribute__((alias("clrx" #NAME), visibility("default")));
    33 #elif defined(_MSC_VER)
     33#else
    3434#  define CLRX_CL_INTERNAL_DECLSYM(NAME) extern decltype(NAME) clrx##NAME;
    3535#  define CLRX_CL_PUBLIC_SYM(NAME)
    36 #else
    37 #  error "Unsupported compiler other than GCC 4"
    3836#endif
    3937
Note: See TracChangeset for help on using the changeset viewer.