Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to enable building swh on msvc #84

Merged
merged 6 commits into from
Jul 7, 2023
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
4 changes: 4 additions & 0 deletions ladspa-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#ifndef LADSPA_UTIL_H
#define LADSPA_UTIL_H

#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif

#include <math.h>
#include <stdint.h>

Expand Down
3 changes: 3 additions & 0 deletions makestub.pl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
\#define __USE_ISOC99 1
\#define __USE_ISOC9X 1
\#ifndef _USE_MATH_DEFINES
\#define _USE_MATH_DEFINES
\#endif
\#include <math.h>
\#include "ladspa.h"
Expand Down
1 change: 0 additions & 1 deletion util/pitchscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include <string.h>
#include "../config.h"
#include <math.h>

#include "pitchscale.h"

Expand Down
6 changes: 6 additions & 0 deletions util/pitchscale.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

#include <config.h>

#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif

#include <math.h>

#ifdef FFTW3

#include <fftw3.h>
Expand Down