Skip to content

Commit 20dd9b0

Browse files
committed
Add PluginAPI.h for PLUGIN_API #define
1 parent 867b4c8 commit 20dd9b0

3 files changed

Lines changed: 39 additions & 12 deletions

File tree

Source/Processors/PluginManager/OpenEphysPlugin.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,9 @@
2525
#define OPENEPHYSPLUGIN_H_INCLUDED
2626

2727
#include <JuceHeader.h>
28-
28+
#include "PluginAPI.h"
2929
#include "PluginIDs.h"
3030

31-
#ifdef _WIN32
32-
#ifdef OEPLUGIN
33-
#define PLUGIN_API __declspec (dllimport)
34-
#else
35-
#define PLUGIN_API __declspec (dllexport)
36-
#endif
37-
#else
38-
#define PLUGIN_API __attribute__ ((visibility ("default")))
39-
#endif
40-
4131
struct ProcessorInfo;
4232
struct LibraryInfo;
4333
struct PluginInfo;
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
------------------------------------------------------------------
3+
4+
This file is part of the Open Ephys GUI
5+
Copyright (C) 2024 Open Ephys
6+
7+
------------------------------------------------------------------
8+
9+
This program is free software: you can redistribute it and/or modify
10+
it under the terms of the GNU General Public License as published by
11+
the Free Software Foundation, either version 3 of the License, or
12+
(at your option) any later version.
13+
14+
This program is distributed in the hope that it will be useful,
15+
but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
GNU General Public License for more details.
18+
19+
You should have received a copy of the GNU General Public License
20+
along with this program. If not, see <http://www.gnu.org/licenses/>.
21+
22+
*/
23+
24+
#ifndef PLUGIN_API_H_INCLUDED
25+
#define PLUGIN_API_H_INCLUDED
26+
27+
#ifdef _WIN32
28+
#ifdef OEPLUGIN
29+
#define PLUGIN_API __declspec (dllimport)
30+
#else
31+
#define PLUGIN_API __declspec (dllexport)
32+
#endif
33+
#else
34+
#define PLUGIN_API __attribute__ ((visibility ("default")))
35+
#endif
36+
37+
#endif // PLUGIN_API_H_INCLUDED

Source/Utils/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include <mutex>
3333
#include <string>
3434

35-
#include "../Processors/PluginManager/OpenEphysPlugin.h"
35+
#include "../Processors/PluginManager/PluginAPI.h"
3636

3737
/* Thread-safe logger */
3838
class PLUGIN_API OELogger

0 commit comments

Comments
 (0)