Add M_PI #define for platforms that do not have that defined.

PiperOrigin-RevId: 274069217
This commit is contained in:
Nick Kreeger 2019-10-10 16:58:12 -07:00 committed by TensorFlower Gardener
parent 571412c7cf
commit af35d3b9d4

View File

@ -21,6 +21,11 @@ limitations under the License.
#include <stdlib.h>
#include <string.h>
// Some platforms don't have M_PI
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
void WindowFillConfigWithDefaults(struct WindowConfig* config) {
config->size_ms = 25;
config->step_size_ms = 10;