Closed Bug 1186112 Opened 4 years ago Closed 4 years ago
Get rid of the #define'd constants in BMPFile
BMPFileHeaders.h is an obstacle to both refactoring and unified compilation in ImageLib because it defines constants with the same names as constants defined in windows.h. Rather than continuing to fight this issue with careful include order and separate compilation, let's just get rid of those #define's once and for all. In this bug I'll replace the #define's with a combination of static constants and struct-wrapped enums. (I can't use |enum class| for these constants because we do math with them and assign them to integer variables.)
Here's the patch. Outside of BMPFileHeaders.h this is entirely search and replace, with a pass over the resulting diff to make sure everything looks right and fix formatting.
Needed to rename one more constant. Tricksy #define's...
Attachment #8636758 - Flags: review?(tnikkel)
OK, try looks good.
Attachment #8636758 - Flags: review?(tnikkel) → review+
You need to log in before you can comment on or make changes to this bug.