Fix windows build

This commit is contained in:
Takahito Tejima 2015-09-30 11:20:03 -07:00
parent b5d2a087b1
commit f5810bac97
2 changed files with 7 additions and 7 deletions

View File

@ -25,12 +25,12 @@
#ifndef STOPWATCH_H
#define STOPWATCH_H
#if not (_WIN32 or _WIN64)
#if (_WIN32 or _WIN64)
#include <windows.h>
#else
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#else
#endif
class Stopwatch {

View File

@ -243,10 +243,10 @@ EndCapBSplineBasisPatchFactory::computeLimitStencils(
P->AddWithWeight(f, 1.0f/float(valence));
float c0 = 0.5*cosf((float(2*M_PI) * float(i)/float(valence)))
+ 0.5*cosf((float(2*M_PI) * float(ip)/float(valence)));
float c1 = 0.5*sinf((float(2*M_PI) * float(i)/float(valence)))
+ 0.5*sinf((float(2*M_PI) * float(ip)/float(valence)));
float c0 = 0.5f*cosf((float(2*M_PI) * float(i)/float(valence)))
+ 0.5f*cosf((float(2*M_PI) * float(ip)/float(valence)));
float c1 = 0.5f*sinf((float(2*M_PI) * float(i)/float(valence)))
+ 0.5f*sinf((float(2*M_PI) * float(ip)/float(valence)));
e0.AddWithWeight(f, c0*ef);
e1.AddWithWeight(f, c1*ef);
}