#include <string>
#ifdef HAVE_CONFIG_H // Built using autoconf
+#ifdef __ANDROID__
+#include "stressapptest_config_android.h"
+#else
#include "stressapptest_config.h"
-using namespace std;
using namespace __gnu_cxx;
+#endif
+using namespace std;
typedef signed long long int64;
typedef signed int int32;
// error_num: an errno error code
inline string ErrorString(int error_num) {
char buf[256];
+#ifdef STRERROR_R_CHAR_P
return string(strerror_r(error_num, buf, sizeof buf));
+#else
+ if (strerror_r(error_num, buf, sizeof buf))
+ return "unknown failure";
+ else
+ return string(buf);
+#endif
}
// Define handy constants here