diff --git a/examples/projectTest/main.cpp b/examples/projectTest/main.cpp index b4db8b2b..3b8db359 100644 --- a/examples/projectTest/main.cpp +++ b/examples/projectTest/main.cpp @@ -55,7 +55,9 @@ // a particular purpose and non-infringement. // - #include +#if defined( _WIN32) +#include +#endif #include #include @@ -75,7 +77,7 @@ #include #include #include -#include +#include #ifdef OPENSUBDIV_HAS_OPENMP #include @@ -99,14 +101,14 @@ typedef FarSubdivisionTables OsdFarMeshSubdivision; static void createOsdMesh(int level) { - float points[] = { 0.000000, -1.414214, 1.000000, - 1.414214, 0.000000, 1.000000, - -1.414214, 0.000000, 1.000000, - 0.000000, 1.414214, 1.000000, - -1.414214, 0.000000, -1.000000, - 0.000000, 1.414214, -1.000000, - 0.000000, -1.414214, -1.000000, - 1.414214, 0.000000, -1.000000}; + float points[] = { 0.000000f, -1.414214f, 1.000000f, + 1.414214f, 0.000000f, 1.000000f, + -1.414214f, 0.000000f, 1.000000f, + 0.000000f, 1.414214f, 1.000000f, + -1.414214f, 0.000000f, -1.000000f, + 0.000000f, 1.414214f, -1.000000f, + 0.000000f, -1.414214f, -1.000000f, + 1.414214f, 0.000000f, -1.000000f }; int nverts[] = { 4, 4, 4, 4, 4, 4};