Files
allwpilib/wpiutil/src/main/native/include/llvm/WindowsError.h
Peter Johnson a28832e52f Add backwards compatibility shims for old wpiutil headers.
These generate a warning when included, then include the old header.

Note for GCC, #warning is used; this requires -std=gnu++14 instead of
-std=c++14 (otherwise the warning is treated as an error because #warning is
a GNU extension).  On MSVC, #pragma message is used, which is a bit
unsatisfactory as the message doesn't say where it was included from.

The llvm shim headers also include a llvm namespace shim.
2018-04-30 10:22:54 -07:00

19 lines
762 B
C++

/*----------------------------------------------------------------------------*/
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/
#pragma once
#ifdef _MSC_VER
#pragma message "warning: llvm/WindowsError.h is deprecated; include wpi/WindowsError.h instead"
#else
#warning "llvm/WindowsError.h is deprecated; include wpi/WindowsError.h instead"
#endif
#include "wpi/WindowsError.h"
namespace llvm = wpi;