Skip to content
Snippets Groups Projects
Verified Commit 90bf583d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Better patch for missing M_PI constants

parent ee40035c
No related branches found
No related tags found
No related merge requests found
Pipeline #2164 passed with warnings
#include <openlibm_math.h> #include <openlibm_math.h>
// Included to fix mesa issues // Included to fix mesa issues
#define M_PI_2 (M_PI/2.0) #ifndef M_PI
#define M_PI_4 (M_PI/4.0) #define M_PI 3.14159265358979323846 /* pi */
#endif
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923 /* pi/2 */
#endif
#ifndef M_PI_4
#define M_PI_4 0.78539816339744830962 /* pi/4 */
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment