Last Comment Bug 755836 - Undef near in Dictionary Helper code generator
: Undef near in Dictionary Helper code generator
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: DOM (show other bugs)
: unspecified
: x86 Mac OS X
: -- normal (vote)
: mozilla15
Assigned To: Doug Turner (:dougt)
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-16 11:15 PDT by Doug Turner (:dougt)
Modified: 2012-05-17 03:19 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
v.1 (1.10 KB, patch)
2012-05-16 11:16 PDT, Doug Turner (:dougt)
khuey: review+
Details | Diff | Splinter Review

Description Doug Turner (:dougt) 2012-05-16 11:15:09 PDT
For bug 751663, I added a new event. One of the attributes of this event is 'near'.  near (and far) are defined on Win32 which results in this error:


e:\builds\moz2_slave\try-w32\build\obj-firefox\dist\include\DictionaryHelpers.h(269) : error C2208: 'bool' : no members defined using this type

In order to avoid this error, i am undef'ing near.  This is similar to what we do in other places (http://mxr.mozilla.org/mozilla-central/search?string=Microsoft%27s+API+Name+hackery+sucks)
Comment 1 Doug Turner (:dougt) 2012-05-16 11:16:17 PDT
Created attachment 624456 [details] [diff] [review]
v.1
Comment 3 Ed Morley [:emorley] 2012-05-17 03:19:05 PDT
https://hg.mozilla.org/mozilla-central/rev/1e6cc17ba23a

Note You need to log in before you can comment on or make changes to this bug.