Removed debug spam, fixed issue in libstlport - seems that it cannot be linked dynamically because
it has some export symbols with length bigger than 128, and app hangs when trying to access them. Fortunately libstlport has MIT-like license, so it can be linked to closed-source apps statically.
This commit is contained in:
@@ -20,12 +20,8 @@
|
||||
#ifndef _AS_STRING_H_
|
||||
#define _AS_STRING_H_
|
||||
|
||||
//#include <sstream>
|
||||
#include <stdio.h>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
// TODO: why the hell this function deadlocks? Is ostringstream illegal in Android? And why did it work earlier?
|
||||
/*
|
||||
template<typename T> std::string asString(const T& obj) {
|
||||
|
||||
std::ostringstream t;
|
||||
@@ -33,18 +29,5 @@ template<typename T> std::string asString(const T& obj) {
|
||||
std::string res(t.str());
|
||||
return res;
|
||||
}
|
||||
*/
|
||||
|
||||
static inline std::string asString(int obj) {
|
||||
char t[64];
|
||||
sprintf(t, "%i", obj);
|
||||
return std::string (t);
|
||||
}
|
||||
|
||||
static inline std::string asString(unsigned int obj) {
|
||||
char t[64];
|
||||
sprintf(t, "%u", obj);
|
||||
return std::string (t);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user