Skip to content

Commit

Permalink
sclang: win32/msvc compile fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Blechmann <tim@klingt.org>
  • Loading branch information
timblechmann committed Feb 8, 2013
1 parent ab7662a commit 9e7d651
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 22 deletions.
2 changes: 1 addition & 1 deletion include/lang/SC_TerminalClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class SC_DLLEXPORT SC_TerminalClient : public SC_LanguageClient
#ifndef _WIN32
int mInputCtlPipe[2];
#else
HANDLE mQuitInputEvent;
void * mQuitInputEvent;
#endif
pthread_t mInputThread;
pthread_mutex_t mInputMutex;
Expand Down
7 changes: 1 addition & 6 deletions lang/LangPrimSource/PyrFilePrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1326,12 +1326,7 @@ int prPipeClose(struct VMGlobals *g, int numArgsPushed)
////////

#ifndef NO_LIBSNDFILE

#ifdef SC_WIN32
#include <sndfile-win.h>
#else
#include <sndfile.h>
#endif
#include <sndfile.h>


int sampleFormatToString(struct SF_INFO *info, const char **string);
Expand Down
1 change: 1 addition & 0 deletions lang/LangPrimSource/PyrPlatformPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Primitives for platform dependent directories, constants etc.
#include "PyrKernel.h"
#ifdef _WIN32
# include "SC_Win32Utils.h"
# include "Shlobj.h"
#endif

#define PATH_CONSTANT_PRIM_BODY(func) \
Expand Down
15 changes: 0 additions & 15 deletions lang/LangSource/PyrMathSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ void pyrmath_init_globs()

// 1/440 = 0.0022727272727 1/12 = 0.083333333333

// These are built in on OSX and Linux
#if !(SC_DARWIN || __linux__)
double log2(double x);
double log2(double x)
{
return log(x) * rlog2;
}

double hypot(double x, double y);
double hypot(double x, double y)
{
return sqrt(x*x + y*y);
}
#endif // !SC_DARWIN && !__linux__

#define SQRT2M1 0.41421356f

double hypotx(double x, double y);
Expand Down

0 comments on commit 9e7d651

Please sign in to comment.