Skip to content

Commit

Permalink
Fixed Windows build
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed Jul 19, 2021
1 parent 38faafe commit 7d73aee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/plugins/teleop/Teleop.hh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
#include <ignition/gui/Plugin.hh>
#include <ignition/gui/qt.h>

#ifndef _WIN32
# define Teleop_EXPORTS_API
#else
# if (defined(Teleop_EXPORTS))
# define Teleop_EXPORTS_API __declspec(dllexport)
# else
# define Teleop_EXPORTS_API __declspec(dllimport)
# endif
#endif

namespace ignition
{
namespace gui
Expand All @@ -39,7 +49,7 @@ namespace plugins
/// vehicle load to the world.
/// ## Configuration
/// This plugin doesn't accept any custom configuration.
class Teleop : public Plugin
class Teleop_EXPORTS_API Teleop : public Plugin
{
Q_OBJECT

Expand Down

0 comments on commit 7d73aee

Please sign in to comment.