Initial stab at the new WPILib.
Change-Id: Id04cc07649959566deb5b4fa637267072a5191ca
diff --git a/frc971/wpilib/joystick_sender.cc b/frc971/wpilib/joystick_sender.cc
index a490e67..7d406d0 100644
--- a/frc971/wpilib/joystick_sender.cc
+++ b/frc971/wpilib/joystick_sender.cc
@@ -6,7 +6,7 @@
#include "aos/common/logging/queue_logging.h"
#include "DriverStation.h"
-#ifdef WPILIB2017
+#if defined(WPILIB2017) || defined(WPILIB2018)
#include "HAL/HAL.h"
#else
#include "HAL/HAL.hpp"
@@ -31,7 +31,7 @@
ds->WaitForData();
auto new_state = ::aos::joystick_state.MakeMessage();
-#ifdef WPILIB2017
+#if defined(WPILIB2017) || defined(WPILIB2018)
HAL_ControlWord control_word;
HAL_GetControlWord(&control_word);
#else