Skip to content

Commit

Permalink
Merge pull request #84 from Rossmaxx/master
Browse files Browse the repository at this point in the history
Fixes to enable building swh on msvc
  • Loading branch information
swh authored Jul 7, 2023
2 parents 7559ebe + ec24f04 commit 02bda23
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
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

0 comments on commit 02bda23

Please sign in to comment.