28 #ifndef _OS_SPECIFICHH_
29 #define _OS_SPECIFICHH_
31 #if (defined(__unix__) || defined(unix) || defined(__APPLE__)) && !defined(USG)
32 #include <sys/param.h>
34 #define OM_ALG_DLL_EXPORT
35 #define OM_XML_DLL_EXPORT
53 #define UNUSED(symbol) symbol
55 #define UNUSED(symbol)
61 #define finite _finite // function used by maxent
70 #define Sleep(x) usleep((x)*1000)
100 dllexp std::string
omDataPath( std::string dir=
"" );
124 dllexp
int initRandom(
unsigned int new_seed=0 );
128 dllexp
int rand_r(
unsigned * seed );
dllexp int rand_r(unsigned *seed)
DLLHandle dllOpen(char const *dll_file_name)
void * dllFunction(DLLHandle, char const *function_name)
bool createPath(const std::string path)
bool pathExists(const std::string path)
dllexp void setupExternalResources()
std::vector< std::string > scanDirectory(std::string dir)
dllexp std::string omDataPath(std::string dir="")
std::vector< std::string > initialPluginPath()
std::string getWorkingPath()
const char * dllError(DLLHandle)
dllexp int initRandom(unsigned int new_seed=0)