Ignore:
Timestamp:
Dec 2, 2010, 1:18:49 AM (15 years ago)
Author:
dmik
Message:

Fixed broken build after r21492 by sorting out a huuuuge wagon of duplicates, wrong include order and other dirty mess.

File:
1 edited

Legend:

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

    r21360 r21493  
    1616 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1717 */
     18
     19#ifndef _GUIDDEF_H_
     20#define _GUIDDEF_H_
    1821
    1922#ifndef GUID_DEFINED
     
    3740#ifdef INITGUID
    3841#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
    39         const GUID name = \
     42    extern const GUID name = \
    4043        { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
    4144#else
     
    4447#endif
    4548
    46 #define DEFINE_OLEGUID(name, l, w1, w2) \
    47         DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46)
    48 
    49 #ifndef _GUIDDEF_H_
    50 #define _GUIDDEF_H_
     49#define DEFINE_OLEGUID(name, l, w1, w2) DEFINE_GUID(name, l, w1, w2, 0xC0,0,0,0,0,0,0,0x46)
    5150
    5251#ifndef __LPGUID_DEFINED__
     
    8786#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2)
    8887#define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2)
    89 #if 0
     88
    9089#if defined(__cplusplus) && !defined(CINTERFACE)
    9190#include <string.h>
    92 inline bool operator==(const GUID& guidOne, const GUID& guidOther)
     91inline BOOL operator==(const GUID& guidOne, const GUID& guidOther)
    9392{
    9493    return !memcmp(&guidOne,&guidOther,sizeof(GUID));
    9594}
    96 inline bool operator!=(const GUID& guidOne, const GUID& guidOther)
     95inline BOOL operator!=(const GUID& guidOne, const GUID& guidOther)
    9796{
    9897    return !(guidOne == guidOther);
    9998}
    10099#endif
    101 #endif
     100
    102101extern const IID GUID_NULL;
     102
    103103#define IID_NULL            GUID_NULL
    104 #define CLSID_NULL GUID_NULL
     104#define CLSID_NULL          GUID_NULL
    105105#define FMTID_NULL          GUID_NULL
    106106
Note: See TracChangeset for help on using the changeset viewer.