Closed Bug 570183 Opened 14 years ago Closed 14 years ago

End the base/basictypes.h insanity

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: cjones, Assigned: cjones)

References

Details

Attachments

(1 file, 1 obsolete file)

Because of conflicting symbol definitions causing windows linking issues, we're forced to include this before prtypes.h in all MOZ_IPC code.  As IPC-enabled things spread across the code base, it's becoming harder and harder to get base/basictypes.h included first.
Was skeptical, but tryserver says this works.  \o/
Assignee: nobody → jones.chris.g
Attachment #449303 - Flags: review?(bent.mozilla)
Comment on attachment 449303 [details] [diff] [review]
Force-include base/basictypes.h in MOZ_IPC-nebaled code so that we don't have to manually ensure it's included before prtypes.h

That works, really? MSVC doesn't seem to use "-include" but rather "-FI"...
Comment on attachment 449303 [details] [diff] [review]
Force-include base/basictypes.h in MOZ_IPC-nebaled code so that we don't have to manually ensure it's included before prtypes.h

It works in the sense that it compiles on win32.  But in all the excitement I didn't push any changes that would have caused a failed build if the force-include was ignored, which it apparently was.  v2 will remove all |#include "base/basictypes.h"| from gecko.
Attachment #449303 - Attachment is obsolete: true
Attachment #449303 - Flags: review?(bent.mozilla)
Removes all #include "base/basictypes.h" from gecko code and now builds on windows.  r?--> bsmedberg because bent is out for the week.
Attachment #449807 - Flags: review?(benjamin)
bsmedberg tells me we can't force-include with all compilers we support to some degree.  Sigh.  (There's not a non-painful general solution that doesn't use force include.)
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Attachment #449807 - Flags: review?(benjamin)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: