X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffg_geometry.c;h=57301a066e7df40c4036180ed7823378a0ccf78d;hb=eff7efba782f214b1bfdb57cd85f87e61bd77c03;hp=f4f505689140b281b64e0d38d5d6f8176ba1b865;hpb=9f5b7e1d1781d7486abd0cf3618ca51730b84dd7;p=freeglut diff --git a/src/fg_geometry.c b/src/fg_geometry.c index f4f5056..57301a0 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -30,17 +30,6 @@ #include "fg_gl2.h" #include -/* VC++6 in C mode doesn't have C99's sinf/cos/sqrtf */ -#ifndef HAVE_SINF -#define sinf(x) (float)sin((double)(x)) -#endif -#ifndef HAVE_COSF -#define cosf(x) (float)cos((double)(x)) -#endif -#ifndef HAVE_SQRTF -#define sqrtf(x) (float)sqrt((double)(x)) -#endif - /* declare for drawing using the different OpenGL versions here so we can have a nice code order below */ #ifndef GL_ES_VERSION_2_0 @@ -987,8 +976,8 @@ static void fghCircleTable(GLfloat **sint, GLfloat **cost, const int n, const GL for (i=1; i 0 ) ? stacks : 1 ); /* Scaling factors for vertex normals */ - const GLfloat cosn = ( (GLfloat)height / sqrtf( height * height + base * base )); - const GLfloat sinn = ( (GLfloat)base / sqrtf( height * height + base * base )); + const GLfloat cosn = (GLfloat) (height / sqrt( height * height + base * base )); + const GLfloat sinn = (GLfloat) (base / sqrt( height * height + base * base ));