Ignore:
Timestamp:
Sep 23, 2013, 3:25:25 PM (12 years ago)
Author:
Patrick Gansterer
Message:

use NOMINMAX instead of #define min min
https://bugs.webkit.org/show_bug.cgi?id=73563

Reviewed by Brent Fulgham.

Use NOMINMAX instead of #define min/max as a cleaner
way of ensuring that Windows system header files don't
define min/max as macro in the first place.

Source/JavaScriptCore:

  • config.h:

Source/WebCore:

  • WebCorePrefix.h:
  • config.h:

Source/WebKit/win:

  • WebKitPrefix.h:

Source/WebKit2:

  • config.h:

Source/WTF:

  • config.h:

Tools:

  • DumpRenderTree/DumpRenderTreePrefix.h:
  • DumpRenderTree/cg/ImageDiffCG.cpp:
  • DumpRenderTree/config.h:
  • DumpRenderTree/win/ImageDiffCairo.cpp:
  • WebKitTestRunner/WebKitTestRunnerPrefix.h:
  • WebKitTestRunner/config.h:

WebKitLibraries:

  • win/tools/vsprops/common.props:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/config.h

    r153162 r156302  
    4444#endif
    4545
    46 // If we don't define these, they get defined in windef.h.
    47 // We want to use std::min and std::max
    48 #define max max
    49 #define min min
    50 
    5146#if !COMPILER(MSVC7_OR_LOWER) && !OS(WINCE)
    5247// We need to define this before the first #include of stdlib.h or it won't contain rand_s.
Note: See TracChangeset for help on using the changeset viewer.