Changeset 1346 for trunk/source/visualization/externals/gl2ps/src/gl2ps.cc
- Timestamp:
- Dec 22, 2010, 11:33:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/externals/gl2ps/src/gl2ps.cc
r1340 r1346 70 70 #include "Geant4_gl2ps.h" 71 71 72 #include < math.h>72 #include <cmath> 73 73 #include <string.h> 74 74 #include <sys/types.h> 75 75 #include <stdarg.h> 76 76 #include <time.h> 77 #include < float.h>77 #include <cfloat> 78 78 79 79 #define GL2PS_HAVE_ZLIB … … 97 97 #define GL2PS_ZOFFSET 5.0e-2F 98 98 #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) 100 100 101 101 /* Primitive types */ … … 725 725 726 726 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]) 730 730 return GL_FALSE; 731 731 } … … 3332 3332 } 3333 3333 3334 static void gl2psPrintTeXBeginViewport(GLint viewport[4])3334 static void gl2psPrintTeXBeginViewport(GLint[4]) 3335 3335 { 3336 3336 glRenderMode(GL_FEEDBACK); … … 5032 5032 } 5033 5033 5034 #if defined(GL2PS_HAVE_LIBPNG) 5034 5035 static void gl2psPrintSVGPixmap(GLfloat x, GLfloat y, GL2PSimage *pixmap) 5036 #else 5037 static void gl2psPrintSVGPixmap(GLfloat, GLfloat, GL2PSimage*) 5038 #endif 5035 5039 { 5036 5040 #if defined(GL2PS_HAVE_LIBPNG)
Note: See TracChangeset
for help on using the changeset viewer.