~thomas-voss/platform-api/no-change-rebuild

« back to all changes in this revision

Viewing changes to src/ubuntu/hybris/bridge.h

  • Committer: Manuel de la Peña
  • Date: 2014-05-08 10:17:29 UTC
  • mfrom: (192.1.9 papi-4.8)
  • mto: (217.1.1 gps-mandel)
  • mto: This revision was merged to the branch mainline in revision 219.
  • Revision ID: manuel.delapena@canonical.com-20140508101729-xvyr0atcdfnmp31m
Move to gcc 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
        DLSYM(&f, #symbol);                     \
144
144
        return f(_1); }
145
145
 
146
 
// pcs attribute (calling convention) is only defined on ARM, avoid warning on
147
 
// other platforms
148
 
#ifdef __arm__
149
 
#define __SF_FN_ATTR __attribute__((pcs("aapcs")))
150
 
#else
151
 
#define __SF_FN_ATTR
152
 
#endif
153
 
 
154
 
#define IMPLEMENT_SF_FUNCTION1(return_type, symbol, arg1) \
155
 
    return_type symbol(arg1 _1)                        \
156
 
    {                                                  \
157
 
        static return_type (*f)(arg1) __SF_FN_ATTR = NULL; \
158
 
        DLSYM(&f, #symbol);                     \
159
 
        return f(_1); }
160
 
 
161
 
 
162
146
#define IMPLEMENT_VOID_FUNCTION1(symbol, arg1)               \
163
147
    void symbol(arg1 _1)                                     \
164
148
    {                                                        \