this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #196 from albertvaka/patch-2

Fix a warning about M_PI already being defined

authored by

Jonathan Dearborn and committed by
GitHub
01409519 3dad6455

+3 -8
+3
include/SDL_gpu.h
··· 1 1 #ifndef _SDL_GPU_H__ 2 2 #define _SDL_GPU_H__ 3 3 4 + #define _USE_MATH_DEFINES // So M_PI and company get defined on MSVC when we include math.h 5 + #include <math.h> // Must be included before SDL.h, otherwise both try to define M_PI and we get a warning 6 + 4 7 #include "SDL.h" 5 8 #include <stdio.h> 6 9 #include <stdarg.h>
-8
src/renderer_shapes_GL_common.inl
··· 2 2 See a particular renderer's *.c file for specifics. */ 3 3 4 4 5 - #ifndef M_PI 6 - #define M_PI 3.14159265358979323846 7 - #endif 8 - 9 - 10 - 11 - 12 - 13 5 // All shapes start this way for setup and so they can access the blit buffer properly 14 6 #define BEGIN_UNTEXTURED(function_name, shape, num_additional_vertices, num_additional_indices) \ 15 7 GPU_CONTEXT_DATA* cdata; \