RESOLVED DUPLICATE of bug 73563 109161
[WIN] Use NOMINMAX consistently
https://bugs.webkit.org/show_bug.cgi?id=109161
Summary [WIN] Use NOMINMAX consistently
Simon Hausmann
Reported 2013-02-07 02:43:18 PST
[WIN] Use NOMINMAX consistently
Attachments
Patch (8.45 KB, patch)
2013-02-07 02:47 PST, Simon Hausmann
no flags
Patch (8.46 KB, patch)
2013-02-07 03:07 PST, Simon Hausmann
no flags
Simon Hausmann
Comment 1 2013-02-07 02:47:35 PST
Early Warning System Bot
Comment 2 2013-02-07 03:05:09 PST
Simon Hausmann
Comment 3 2013-02-07 03:07:32 PST
Patrick R. Gansterer
Comment 4 2013-02-07 03:59:52 PST
Since it's a duplicate of https://bugs.webkit.org/show_bug.cgi?id=73563, please look the the commtents there. I'd define it via buildsystem and remove it from all config.h files
Jocelyn Turcotte
Comment 5 2013-02-07 05:42:00 PST
(In reply to comment #4) > Since it's a duplicate of https://bugs.webkit.org/show_bug.cgi?id=73563, please look the the commtents there. I'd define it via buildsystem and remove it from all config.h files I'm sure Adam had a good reason behind his comment, but since we would have at least 3 build systems to adjust for this I would prefer to keep it in config.h. I believe that config.h should define what the code expects/needs from a platform, while the build system should take care of smaller details of the configuration and system the binary will run on.
Jocelyn Turcotte
Comment 6 2013-02-07 05:46:30 PST
Though there is already a NOMINMAX definition in: Source/JavaScriptCore/JavaScriptCore.vcproj/testapi/testapiCommon.vsprops Source/JavaScriptCore/JavaScriptCore.vcxproj/testapi/testapiCommon.props Source/cmake/OptionsWindows.cmake Tools/DumpRenderTree/win/ImageDiffCommon.vsprops Tools/DumpRenderTree/win/ImageDiffWinCairoCommon.vsprops Simon, what do you think?
Patrick R. Gansterer
Comment 7 2013-02-07 05:50:42 PST
(In reply to comment #5) > I believe that config.h should define what the code expects/needs from a platform, while the build system should take care of smaller details of the configuration and system the binary will run on if we have _ONE_ config.h i agree, but since that's not the case i'd prefere the build system option. Otherwise you should move the other defines into the config.h files too.
Laszlo Gombos
Comment 8 2013-02-07 06:05:18 PST
Can this code be moved to Platform.h ? If it can that I find Platform.h a good place for it.
Simon Hausmann
Comment 9 2013-02-07 06:06:36 PST
I don't mind trying the build system option then. That would mean removing the #define min from config.h altogether.
Laszlo Gombos
Comment 10 2013-02-07 06:15:43 PST
(In reply to comment #9) > I don't mind trying the build system option then. That would mean removing the #define min from config.h altogether. Unless this is a technical necessity for the Window platform/build system, moving this definition to the build system is not the general direction that the project seems to prefer. I similar (bot not exactly the same) matter - see bug 108191 .
Patrick R. Gansterer
Comment 11 2013-02-07 06:21:44 PST
(In reply to comment #10) > (In reply to comment #9) > > I don't mind trying the build system option then. That would mean removing the #define min from config.h altogether. > > Unless this is a technical necessity for the Window platform/build system, moving this definition to the build system is not the general direction that the project seems to prefer. I similar (bot not exactly the same) matter - see bug 108191 . The difference is, that in that case you define a variable, which isn't used outside of WebKit, but NOMINMAX is required for a system header, which can be included at any time, where Platform.h can be too late. I completely agree that the build system isn't the best direction, but unless we have a "commonconfig.h", which gets includes by all other config.h, I still prefere the build system option (for now).
Brent Fulgham
Comment 12 2013-10-30 10:40:19 PDT
Comment on attachment 187039 [details] Patch I don't think this patch is needed anymore, now that NOMINMAX has been added to the build property sheets.
Patrick R. Gansterer
Comment 13 2013-10-30 15:17:19 PDT
*** This bug has been marked as a duplicate of bug 73563 ***
Note You need to log in before you can comment on or make changes to this bug.