mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] Explicitly export wpimath symbols
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
committed by
Peter Johnson
parent
161e211734
commit
382deef750
23
wpiutil/src/main/native/include/wpi/SymbolExports.h
Normal file
23
wpiutil/src/main/native/include/wpi/SymbolExports.h
Normal file
@@ -0,0 +1,23 @@
|
||||
// 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
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable : 4251)
|
||||
|
||||
#ifdef WPILIB_EXPORTS
|
||||
#ifdef __GNUC__
|
||||
#define WPILIB_DLLEXPORT __attribute__((dllexport))
|
||||
#else
|
||||
#define WPILIB_DLLEXPORT __declspec(dllexport)
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define WPILIB_DLLEXPORT
|
||||
#endif
|
||||
|
||||
#else
|
||||
#define WPILIB_DLLEXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wpi/SymbolExports.h"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
class SendableBuilder;
|
||||
@@ -11,7 +13,7 @@ class SendableBuilder;
|
||||
/**
|
||||
* Interface for Sendable objects.
|
||||
*/
|
||||
class Sendable {
|
||||
class WPILIB_DLLEXPORT Sendable {
|
||||
public:
|
||||
virtual ~Sendable() = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user