Ignore:
Timestamp:
Dec 22, 2010, 11:33:38 AM (14 years ago)
Author:
garnier
Message:

before tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/externals/gl2ps/src/gl2ps.cc

    r1340 r1346  
    7070#include "Geant4_gl2ps.h"
    7171
    72 #include <math.h>
     72#include <cmath>
    7373#include <string.h>
    7474#include <sys/types.h>
    7575#include <stdarg.h>
    7676#include <time.h>
    77 #include <float.h>
     77#include <cfloat>
    7878
    7979#define GL2PS_HAVE_ZLIB
     
    9797#define GL2PS_ZOFFSET       5.0e-2F
    9898#define GL2PS_ZOFFSET_LARGE 20.0F
    99 #define GL2PS_ZERO(arg)     (fabs(arg) < 1.e-20)
     99#define GL2PS_ZERO(arg)     (std::fabs(arg) < 1.e-20)
    100100
    101101/* Primitive types */
     
    725725 
    726726  for(i = 1; i < n; i++){
    727     if(fabs(rgba[0][0] - rgba[i][0]) > threshold[0] ||
    728        fabs(rgba[0][1] - rgba[i][1]) > threshold[1] ||
    729        fabs(rgba[0][2] - rgba[i][2]) > threshold[2])
     727    if(std::fabs(rgba[0][0] - rgba[i][0]) > threshold[0] ||
     728       std::fabs(rgba[0][1] - rgba[i][1]) > threshold[1] ||
     729       std::fabs(rgba[0][2] - rgba[i][2]) > threshold[2])
    730730      return GL_FALSE;
    731731  }
     
    33323332}
    33333333
    3334 static void gl2psPrintTeXBeginViewport(GLint viewport[4])
     3334static void gl2psPrintTeXBeginViewport(GLint[4])
    33353335{
    33363336  glRenderMode(GL_FEEDBACK);
     
    50325032}
    50335033
     5034#if defined(GL2PS_HAVE_LIBPNG)
    50345035static void gl2psPrintSVGPixmap(GLfloat x, GLfloat y, GL2PSimage *pixmap)
     5036#else
     5037static void gl2psPrintSVGPixmap(GLfloat, GLfloat, GL2PSimage*)
     5038#endif
    50355039{
    50365040#if defined(GL2PS_HAVE_LIBPNG)
Note: See TracChangeset for help on using the changeset viewer.