mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[wpiutil] Separate third party libraries (#4190)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#ifndef WPI_REVERSEITERATION_H
|
||||
#define WPI_REVERSEITERATION_H
|
||||
|
||||
#include "wpi/PointerLikeTypeTraits.h"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
template<class T = void *>
|
||||
constexpr bool shouldReverseIterate() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -40,7 +40,7 @@ using fstream = std::fstream;
|
||||
#ifndef GHC_USE_STD_FS
|
||||
// #define GHC_WIN_DISABLE_WSTRING_STORAGE_TYPE
|
||||
#define GHC_FILESYSTEM_FWD
|
||||
#include "ghc/filesystem.hpp"
|
||||
#include "wpi/ghc/filesystem.hpp"
|
||||
namespace fs {
|
||||
using namespace ghc::filesystem;
|
||||
using ifstream = ghc::filesystem::ifstream;
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
|
||||
#include "Compiler.h"
|
||||
#include "wpi/Compiler.h"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
|
||||
18
wpiutil/src/main/native/thirdparty/llvm/include/wpi/ReverseIteration.h
vendored
Normal file
18
wpiutil/src/main/native/thirdparty/llvm/include/wpi/ReverseIteration.h
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef WPIUTIL_WPI_REVERSEITERATION_H
|
||||
#define WPIUTIL_WPI_REVERSEITERATION_H
|
||||
|
||||
#include "wpi/PointerLikeTypeTraits.h"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
template<class T = void *>
|
||||
bool shouldReverseIterate() {
|
||||
#if LLVM_ENABLE_REVERSE_ITERATION
|
||||
return detail::IsPointerLike<T>::value;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user