More fixes to optiomal node search.
Support for replying to UTF-8 chat messages. Minor refactoring.
This commit is contained in:
parent
1d3910d629
commit
a186f33ffb
18 changed files with 488 additions and 189 deletions
|
|
@ -69,6 +69,7 @@ CR_NAMESPACE_END
|
|||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <locale.h>
|
||||
|
||||
#if defined (CR_ANDROID)
|
||||
# include <android/log.h>
|
||||
|
|
@ -78,6 +79,12 @@ CR_NAMESPACE_BEGIN
|
|||
|
||||
// helper struct for platform detection
|
||||
struct Platform : public Singleton <Platform> {
|
||||
#if defined (CR_WINDOWS)
|
||||
using LocaleHandle = _locale_t;
|
||||
#else
|
||||
using LocaleHandle = locale_t;
|
||||
#endif
|
||||
|
||||
bool isWindows = false;
|
||||
bool isLinux = false;
|
||||
bool isOSX = false;
|
||||
|
|
@ -193,7 +200,6 @@ struct Platform : public Singleton <Platform> {
|
|||
#endif
|
||||
::abort ();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// expose platform singleton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue