Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Chromium/Win compile.
https://bugs.webkit.org/show_bug.cgi?id=88787

Unreviewed, build fix.

Chromium/Win needs _USE_MATH_DEFINES but doesn't define PLATFORM(WIN).
The other files in WebKit that define this macro (both in
WebCore/platform/graphics/cg) do it by unconditionally #defining it to 1
above the #include of "config.h", so copy that pattern here.

* TestWebKitAPI/Tests/WTF/MediaTime.cpp:



Canonical link: https://commits.webkit.org/110402@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123968 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
pkasting committed Jul 28, 2012
1 parent 25e2d44 commit bbbf2f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
14 changes: 14 additions & 0 deletions Tools/ChangeLog
@@ -1,3 +1,17 @@
2012-07-28 Peter Kasting <pkasting@google.com>

Fix Chromium/Win compile.
https://bugs.webkit.org/show_bug.cgi?id=88787

Unreviewed, build fix.

Chromium/Win needs _USE_MATH_DEFINES but doesn't define PLATFORM(WIN).
The other files in WebKit that define this macro (both in
WebCore/platform/graphics/cg) do it by unconditionally #defining it to 1
above the #include of "config.h", so copy that pattern here.

* TestWebKitAPI/Tests/WTF/MediaTime.cpp:

2012-07-28 Mario Sanchez Prada <msanchez@igalia.com>

[WK2][GTK] Implement a new spell checker API for WebKit2GTK+
Expand Down
5 changes: 1 addition & 4 deletions Tools/TestWebKitAPI/Tests/WTF/MediaTime.cpp
Expand Up @@ -26,12 +26,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#define _USE_MATH_DEFINES 1
#include "config.h"

#if PLATFORM(WIN)
#define _USE_MATH_DEFINES
#endif

#include <wtf/MediaTime.h>

using namespace std;
Expand Down

0 comments on commit bbbf2f5

Please sign in to comment.