Changeset 21515 for trunk/include


Ignore:
Timestamp:
Dec 7, 2010, 1:41:12 PM (15 years ago)
Author:
dmik
Message:

Prevent underscore in GUID constants on EMX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/guiddef.h

    r21493 r21515  
    3939
    4040#ifdef INITGUID
     41#ifdef __EMX__
     42#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
     43    extern const GUID name asm(#name); /* suppress underscore */ \
     44    const GUID name = \
     45        { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
     46#else
    4147#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
    4248    extern const GUID name = \
    43         { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
     49        { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
     50#endif
     51#else /* INITGUID */
     52#ifdef __EMX__
     53#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
     54    extern const GUID name asm(#name) /* suppress underscore */
    4455#else
    4556#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
    4657    extern const GUID name
     58#endif
    4759#endif
    4860
Note: See TracChangeset for help on using the changeset viewer.