Skip to content

Commit

Permalink
Deal with M_PI not being defined by the system headers (thanks, exezin!)
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 9, 2020
1 parent 14f03f9 commit 853e1d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojoal.c
Expand Up @@ -15,6 +15,10 @@
#define ALC_API __declspec(dllexport)
#endif

#ifndef M_PI
#define M_PI (3.14159265358979323846264338327950288)
#endif

#include "AL/al.h"
#include "AL/alc.h"
#include "SDL.h"
Expand Down

0 comments on commit 853e1d8

Please sign in to comment.