Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deps/glfw/examples/boing.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#include <stdio.h>
Expand Down
2 changes: 2 additions & 0 deletions deps/glfw/examples/gears.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#include <math.h>
Expand Down
2 changes: 2 additions & 0 deletions deps/glfw/examples/particles.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#include <stdlib.h>
Expand Down
9 changes: 5 additions & 4 deletions deps/glfw/examples/splitview.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
// (If the code seems a little bit strange here and there, it may be
// because I am not a friend of orthogonal projections)
//========================================================================

#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>

#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#define GLFW_INCLUDE_GLEXT
#include <GLFW/glfw3.h>

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions deps/glfw/examples/wave.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#include <stdio.h>
Expand Down
6 changes: 4 additions & 2 deletions deps/glfw/tests/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
//
//========================================================================

#include <GLFW/glfw3.h>

#if defined(_MSC_VER)
// Make MS math.h define M_PI
#define _USE_MATH_DEFINES
#elif __GNUC__
#define _GNU_SOURCE
#endif

#include <GLFW/glfw3.h>

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down