mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-16 19:16:05 +00:00
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:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user