comparison layer/Colour3DPlotLayer.cpp @ 545:be5c35d3f409

* solaris build fixes
author Chris Cannam
date Thu, 10 Sep 2009 18:44:45 +0000
parents 0cc658fe1423
children f4960f8ce798
comparison
equal deleted inserted replaced
544:1dd2cddc32eb 545:be5c35d3f409
27 #include <QTextStream> 27 #include <QTextStream>
28 28
29 #include <iostream> 29 #include <iostream>
30 30
31 #include <cassert> 31 #include <cassert>
32
33 #ifndef __GNUC__
34 #include <alloca.h>
35 #endif
32 36
33 //#define DEBUG_COLOUR_3D_PLOT_LAYER_PAINT 1 37 //#define DEBUG_COLOUR_3D_PLOT_LAYER_PAINT 1
34 38
35 39
36 Colour3DPlotLayer::Colour3DPlotLayer() : 40 Colour3DPlotLayer::Colour3DPlotLayer() :
1370 long xf = -1; 1374 long xf = -1;
1371 long nxf = v->getFrameForX(x0); 1375 long nxf = v->getFrameForX(x0);
1372 1376
1373 float epsilon = 0.000001; 1377 float epsilon = 0.000001;
1374 1378
1379 #ifdef __GNUC__
1375 float sxa[w * 2]; 1380 float sxa[w * 2];
1381 #else
1382 float *sxa = (float *)alloca(w * 2 * sizeof(float));
1383 #endif
1376 for (int x = 0; x < w; ++x) { 1384 for (int x = 0; x < w; ++x) {
1377 1385
1378 xf = nxf; 1386 xf = nxf;
1379 nxf = xf + zoomLevel; 1387 nxf = xf + zoomLevel;
1380 1388