Fixes Android Build issues

Trying to build with the android standalone compiler, and these 2 things
were causing errors. I don't know what an equivalent to basename would
be, because I don't really know what it does.
This commit is contained in:
Thad House
2016-01-03 21:26:51 -08:00
parent 5e2a07d58a
commit 1247976a34
2 changed files with 6 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ void NetworkTable::SetTeam(int team) {
#ifdef _MSC_VER
sprintf_s(tmp, "roboRIO-%d-FRC.local\n", team);
#else
std::snprintf(tmp, 30, "roboRIO-%d-FRC.local\n",team);
using namespace std;
snprintf(tmp, 30, "roboRIO-%d-FRC.local\n",team);
#endif
SetIPAddress(tmp);
}