TonicAudio / Tonic

Easy and efficient audio synthesis in C++
The Unlicense
522 stars 63 forks source link

log2 redefined(?) #220

Closed anhinga closed 10 years ago

anhinga commented 11 years ago

Visual Studio Express 2013 thinks that log2 function in TonicCore.h is redefined.

Commenting the function out solves the issue for Visual Studio Express 2013 (Windows 8)

xinaesthete commented 10 years ago

Using #if _MSC_VER < 1800 should deal with this in a way that would not break it in older versions (but I'm not 100% certain 1800 is the right value to compare against).

I also had another error C4716: 'Tonic::loadAudioFile' : must return a value. Adding a return NULL; to that function allows the TonicStandaloneDemo to work with the current version from Git.