From: Orhun B. <orh...@gm...> - 2008-08-23 22:24:18
|
Hi, I just wanted to note that anonymous unions generate the following warning in Visual C++ (9.0) at warning level 4. glsdk\trunk\inc\GLSDK/glm.h(19) : warning C4201: nonstandard extension used : nameless struct/union It might be early to report such problems but I had to make several changes to make glm.c compile with Visual C++. - windows.h has to be included before glm.h. - I had to define _USE_MATH_DEFINES to have M_PI defined. . From MSDN > The "Math Constants" are not defined in Standard C/C++. Therefore, in order to use them, you have to first define _USE_MATH_DEFINES and then include cmath or math.h as below. -- Orhun Birsoy |