mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Merge wpiformat configs (#8365)
After replacing the remaining include guards with `#pragma once`, I was able to merge all the wpiformat configs into one file in the repo root. This should make the config easier to reason about and maintain in the future.
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#ifndef CSCORE_USBCAMERABUFFER_HPP_
|
||||
#define CSCORE_USBCAMERABUFFER_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <sys/mman.h>
|
||||
|
||||
@@ -51,5 +50,3 @@ class UsbCameraBuffer {
|
||||
};
|
||||
|
||||
} // namespace wpi::cs
|
||||
|
||||
#endif // CSCORE_USBCAMERABUFFER_HPP_
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#ifndef CSCORE_USBCAMERAIMPL_HPP_
|
||||
#define CSCORE_USBCAMERAIMPL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
@@ -178,5 +177,3 @@ class UsbCameraImpl : public SourceImpl {
|
||||
};
|
||||
|
||||
} // namespace wpi::cs
|
||||
|
||||
#endif // CSCORE_USBCAMERAIMPL_HPP_
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#ifndef CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
#define CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
@@ -74,5 +73,3 @@ class UsbCameraProperty : public PropertyImpl {
|
||||
};
|
||||
|
||||
} // namespace wpi::cs
|
||||
|
||||
#endif // CSCORE_USBCAMERAPROPERTY_HPP_
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
// 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.
|
||||
|
||||
#ifndef CSCORE_USBUTIL_HPP_
|
||||
#define CSCORE_USBUTIL_HPP_
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -20,5 +19,3 @@ int CheckedIoctl(int fd, unsigned long req, void* data, // NOLINT(runtime/int)
|
||||
CheckedIoctl(fd, req, data, #req, __FILE__, __LINE__, true)
|
||||
|
||||
} // namespace wpi::cs
|
||||
|
||||
#endif // CSCORE_USBUTIL_HPP_
|
||||
|
||||
Reference in New Issue
Block a user