Changeset 12470 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Jan 29, 2006, 9:58:39 PM (19 years ago)
Author:
eseidel
Message:

2006-01-29 Eric Seidel <[email protected]>

Reviewed by darin.

Fix the build by applying a GCC-specific namespace hack.

  • kjs/lookup.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/lookup.h

    r12468 r12470  
    294294 * then the last line will use IMPLEMENT_PROTOTYPE_WITH_PARENT, with DOMNodeProto as last argument.
    295295 */
     296
     297// Work around a bug in GCC 4.1
     298#if !__GNUC__
     299#define KJS_GCC_ROOT_NS_HACK ::
     300#else
     301#define KJS_GCC_ROOT_NS_HACK
     302#endif
     303
    296304#define KJS_DEFINE_PROTOTYPE(ClassProto) \
    297305  class ClassProto : public KJS::JSObject { \
    298   friend KJS::JSObject *::cacheGlobalObject<ClassProto>(KJS::ExecState *exec, const KJS::Identifier &propertyName); \
     306  friend KJS::JSObject *KJS_GCC_ROOT_NS_HACK cacheGlobalObject<ClassProto>(KJS::ExecState *exec, const KJS::Identifier &propertyName); \
    299307  public: \
    300308    static KJS::JSObject *ClassProto::self(KJS::ExecState *exec); \
Note: See TracChangeset for help on using the changeset viewer.