Commit 7ad06c87 authored by Miller Puckette's avatar Miller Puckette
Browse files

fixed MSW compile errors

parent acf61ca0
......@@ -6,7 +6,7 @@ pd_nt: $(NAME).dll
.SUFFIXES: .dll
PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo
PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo -D_CRT_SECURE_NO_WARNINGS
# VC="C:\Program Files\Microsoft Visual Studio\Vc98"
VC = "C:\Program Files\Microsoft Visual Studio 9.0\VC"
VSTK = "C:\Program Files\Microsoft SDKs\Windows\v6.0A"
......
......@@ -13,6 +13,9 @@
and usable in other contexts. The one external requirement is a real
single-precision FFT, invoked as in the Mayer one: */
#if (defined(NT) && defined(PD)) /* ignore this, it's just Microsoft nonsense */
__declspec(dllimport) extern
#endif
void mayer_realfft(int npoints, float *buf);
/* this routine is passed a buffer of npoints values, and returns the
......@@ -23,7 +26,7 @@ for example, defines this in the file d_fft_mayer.c or d_fft_fftsg.c. */
#include <math.h>
#include <stdio.h>
#include <string.h>
#ifdef MSW
#ifdef NT
#include <malloc.h>
#else
#include <alloca.h>
......
......@@ -224,8 +224,8 @@ static int tcpmakeoutput(t_fdpoll *x, char *inbuf, int len)
#ifdef MSW
{
int j;
for (j = 0; j < bp - messbuf; j++)
putchar(messbuf[j]);
for (j = 0; j < outlen; j++)
putchar(outbuf[j]);
}
#else
write(1, outbuf, outlen);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment