successful win32 build, unran. untested. handing off to sperl

- hand wrote defines for a few standard math functions for non C99 compliant platforms
- added #ifdefs to handle glew includes
-  put some preprocessor macros and includes to project file


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@467 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-09-21 18:50:29 +00:00
parent 44140ecf72
commit afc3a4e21e
18 changed files with 165 additions and 16 deletions

View File

@ -15,11 +15,14 @@
#include <sstream>
#include <set>
#ifdef LINUX
extern "C"
{
#include <errno.h>
#include <dirent.h>
}
#endif
#include <cassert>
#include "projectM.hpp"
@ -114,6 +117,10 @@ std::auto_ptr<Preset> PresetLoader::loadPreset(unsigned int index, const PresetI
void PresetLoader::handleDirectoryError()
{
#ifdef WIN32
std::cerr << "[PresetLoader] warning: errno unsupported on win32 platforms. fix me" << std::endl;
#else
switch (errno)
{
case ENOENT:
@ -137,4 +144,5 @@ void PresetLoader::handleDirectoryError()
default:
break;
}
#endif
}