#ifndef configH
#define configH
//
//	typename_ is just typename except where BCC does not like it
//
#define typename_ typename											// schmidt

#ifdef _MSC_VER
#include <string.h>
#include <string>
inline int CompareText (const std::string& s1, const std::string& s2) {
    return _stricmp (s1.c_str(), s2.c_str());
}
inline int stricmp (const char* s1, const char* s2) {
    return _stricmp (s1,s2);
}
inline int strincmp (const char* s1, const char* s2, size_t n) {	//xkubalik / sschmidt (size_t)
    return _strnicmp (s1,s2, n);									//xkubalik / schmidt
}																	//xkubalik
#define suffixDelim "."
#define dirDelim "\\:"
#endif

#ifdef __GNUG__
#include <string.h>
inline int stricmp (const char* s1, const char* s2) {
    return strcasecmp (s1,s2);
}
inline int strincmp (const char* s1, const char* s2, unsigned n) {
    return strncasecmp (s1,s2, n);
}
#include <string>
inline int CompareText (const std::string& s1, const std::string& s2) {
    return strcasecmp (s1.c_str(), s2.c_str());
}

#define suffixDelim "."
#define dirDelim "/"

#define HAVE_GETOPT										// schmidt
#endif	/* __GNUG__ */

#ifdef __BCPLUSPLUS__
#include <string.h>
#include <string>
int CompareText (const std::string& s1, const std::string& s2) {
    return stricmp (s1.c_str(), s2.c_str());
}
#define suffixDelim "."
#define dirDelim "\\:"
#undef typename_										// schmidt
#define typename_
#endif

#endif
