mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-01 06:20:38 +01:00
28 lines
419 B
C++
28 lines
419 B
C++
#ifndef ARABICA_VS6_WORKAROUND_H
|
|
#define ARABICA_VS6_WORKAROUND_H
|
|
|
|
#ifndef ARABICA_VS6_WORKAROUND
|
|
#error "This file is only for use in Visual C++/Studio v6 builds."
|
|
#endif
|
|
|
|
#undef max
|
|
#undef min
|
|
|
|
namespace std {
|
|
typedef ::mbstate_t mbstate_t;
|
|
|
|
template<typename T>
|
|
T max(T a, T b)
|
|
{
|
|
return (a > b) ? a : b;
|
|
}
|
|
|
|
template<typename T>
|
|
T min(T a, T b)
|
|
{
|
|
return (a < b) ? a : b;
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|