Skip to content

Commit

Permalink
Make sure we can build on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Jun 27, 2017
1 parent 25789f2 commit f863953
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions src/plugins/simulation/PendulumWindow/src/pendulumwindowglobal.h
@@ -0,0 +1,40 @@
/*******************************************************************************
Copyright (C) The University of Auckland
OpenCOR is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenCOR is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/

//==============================================================================
// Pendulum window global
//==============================================================================

#pragma once

//==============================================================================

#ifdef _WIN32
#ifdef PendulumWindow_PLUGIN
#define PENDULUMWINDOW_EXPORT __declspec(dllexport)
#else
#define PENDULUMWINDOW_EXPORT __declspec(dllimport)
#endif
#else
#define PENDULUMWINDOW_EXPORT
#endif

//==============================================================================
// End of file
//==============================================================================
Expand Up @@ -25,6 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

//==============================================================================

#include "pendulumwindowglobal.h"
#include "windowwidget.h"

//==============================================================================
Expand Down Expand Up @@ -72,7 +73,7 @@ namespace PendulumWindow {

//==============================================================================

class PendulumWindowWindow : public Core::WindowWidget
class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget
{
Q_OBJECT

Expand Down

0 comments on commit f863953

Please sign in to comment.