Bug 1059033 - Move DrawTargetTiled to non-unified to ensure that _USE_MATH_DEFINES is applied first. CLOSED TREE
☠☠ backed out by 6cddb4cf40e3 ☠ ☠
authorMatt Woodrow <mwoodrow@mozilla.com>
Mon, 01 Sep 2014 17:28:53 +1200
changeset 224494 a54dbdca597b1dee86ba04b72bfe95d3ea865413
parent 224493 22f161c9ba3e16a4072a5afddbc545d87fa8a9e7
child 224495 6cddb4cf40e3216499500691e3e47086f824ed42
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1059033
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1059033 - Move DrawTargetTiled to non-unified to ensure that _USE_MATH_DEFINES is applied first. CLOSED TREE
gfx/2d/DrawTargetTiled.cpp
gfx/2d/moz.build
--- a/gfx/2d/DrawTargetTiled.cpp
+++ b/gfx/2d/DrawTargetTiled.cpp
@@ -1,19 +1,19 @@
 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+#define _USE_MATH_DEFINES
+#include <cmath>
+
 #include "DrawTargetTiled.h"
 #include "Logging.h"
 
-#define _USE_MATH_DEFINES
-#include <cmath>
-
 using namespace std;
 
 namespace mozilla {
 namespace gfx {
 
 DrawTargetTiled::DrawTargetTiled()
 {
 }
--- a/gfx/2d/moz.build
+++ b/gfx/2d/moz.build
@@ -103,17 +103,16 @@ UNIFIED_SOURCES += [
     'DataSourceSurface.cpp',
     'DataSurfaceHelpers.cpp',
     'DrawEventRecorder.cpp',
     'DrawTarget.cpp',
     'DrawTargetCairo.cpp',
     'DrawTargetCapture.cpp',
     'DrawTargetDual.cpp',
     'DrawTargetRecording.cpp',
-    'DrawTargetTiled.cpp',
     'Factory.cpp',
     'FilterNodeSoftware.cpp',
     'FilterProcessing.cpp',
     'FilterProcessingScalar.cpp',
     'ImageScaling.cpp',
     'Matrix.cpp',
     'Path.cpp',
     'PathCairo.cpp',
@@ -122,16 +121,21 @@ UNIFIED_SOURCES += [
     'RecordedEvent.cpp',
     'Scale.cpp',
     'ScaledFontBase.cpp',
     'ScaledFontCairo.cpp',
     'SourceSurfaceCairo.cpp',
     'SourceSurfaceRawData.cpp',
 ]
 
+SOURCES += [
+    'DrawTargetTiled.cpp',
+
+]
+
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
     SOURCES += [
         'MacIOSurface.cpp',
         'QuartzSupport.mm',
     ]
 
 FAIL_ON_WARNINGS = True