diff --git a/hal/src/main/native/systemcore/PWM.cpp b/hal/src/main/native/systemcore/PWM.cpp index 5a5d2a69c18..9f9cb56986e 100644 --- a/hal/src/main/native/systemcore/PWM.cpp +++ b/hal/src/main/native/systemcore/PWM.cpp @@ -15,10 +15,10 @@ #include "HALInitializer.h" #include "HALInternal.h" #include "PortsInternal.h" +#include "SmartIo.h" #include "hal/Errors.h" #include "hal/cpp/fpga_clock.h" #include "hal/handles/HandlesInternal.h" -#include "SmartIo.h" using namespace hal; diff --git a/hal/src/main/native/systemcore/SmartIo.cpp b/hal/src/main/native/systemcore/SmartIo.cpp index 035e821386f..9a3da55b122 100644 --- a/hal/src/main/native/systemcore/SmartIo.cpp +++ b/hal/src/main/native/systemcore/SmartIo.cpp @@ -1,10 +1,14 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + #include "SmartIo.h" +#include + #include "HALInitializer.h" #include "SystemServer.h" -#include - namespace hal { wpi::mutex smartIoMutex; diff --git a/hal/src/main/native/systemcore/SmartIo.h b/hal/src/main/native/systemcore/SmartIo.h index 03b25bd3999..376fb8c4092 100644 --- a/hal/src/main/native/systemcore/SmartIo.h +++ b/hal/src/main/native/systemcore/SmartIo.h @@ -1,10 +1,15 @@ +// Copyright (c) FIRST and other WPILib contributors. +// Open Source Software; you can modify and/or share it under the terms of +// the WPILib BSD license file in the root directory of this project. + #pragma once +#include + #include "PortsInternal.h" #include "hal/handles/DigitalHandleResource.h" #include "hal/handles/HandlesInternal.h" #include "networktables/DoubleTopic.h" -#include namespace hal {