mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user