root/juggler/branches/2.2/modules/gadgeteer/cluster/PluginConfig.h

Revision 19729, 5.3 kB (checked in by patrick, 2 years ago)

Copyright update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
2  *
3  * VR Juggler is (C) Copyright 1998-2007 by Iowa State University
4  *
5  * Original Authors:
6  *   Allen Bierbaum, Christopher Just,
7  *   Patrick Hartling, Kevin Meinert,
8  *   Carolina Cruz-Neira, Albert Baker
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the
22  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23  * Boston, MA 02111-1307, USA.
24  *
25  *************** <auto-copyright.pl END do not edit this line> ***************/
26
27 #ifndef _CLUSTER_PLUGIN_CONFIG_H_
28 #define _CLUSTER_PLUGIN_CONFIG_H_
29
30 /* Get rid of symbols added by Autoconf 2.5x. */
31 #undef PACKAGE_BUGREPORT
32 #undef PACKAGE_NAME
33 #undef PACKAGE_STRING
34 #undef PACKAGE_TARNAME
35 #undef PACKAGE_VERSION
36  
37 #include <gadget/gadgetConfig.h>
38
39 /*
40  * ----------------------------------------------------------------------------
41  * DLL-related macros.  These are based on the macros used by NSPR.  Use
42  * GADGET_CLUSTER_PLUGIN_EXTERN for the prototype and GADGET_CLUSTER_PLUGIN_IMPLEMENT for the
43  * implementation.
44  * ----------------------------------------------------------------------------
45  */
46 #if defined(WIN32) || defined(WIN64)
47
48 #   if defined(__GNUC__)
49 #       undef _declspec
50 #       define _declspec(x) __declspec(x)
51 #   endif
52
53 #   define GADGET_CLUSTER_PLUGIN_EXPORT(__type)      _declspec(dllexport) __type
54 #   define GADGET_CLUSTER_PLUGIN_EXPORT_CLASS        _declspec(dllexport)
55 #   define GADGET_CLUSTER_PLUGIN_EXPORT_DATA(__type) _declspec(dllexport) __type
56 #   define GADGET_CLUSTER_PLUGIN_IMPORT(__type)      _declspec(dllimport) __type
57 #   define GADGET_CLUSTER_PLUGIN_IMPORT_DATA(__type) _declspec(dllimport) __type
58 #   define GADGET_CLUSTER_PLUGIN_IMPORT_CLASS        _declspec(dllimport)
59
60 #   define GADGET_CLUSTER_PLUGIN_EXTERN(__type)         extern _declspec(dllexport) __type
61 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT(__type)      _declspec(dllexport) __type
62 #   define GADGET_CLUSTER_PLUGIN_EXTERN_DATA(__type)    extern _declspec(dllexport) __type
63 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT_DATA(__type) _declspec(dllexport) __type
64
65 #   define GADGET_CLUSTER_PLUGIN_CALLBACK
66 #   define GADGET_CLUSTER_PLUGIN_CALLBACK_DECL
67 #   define GADGET_CLUSTER_PLUGIN_STATIC_CALLBACK(__x) static __x
68
69 #elif defined(GADGET_HAVE_GCC_VISIBILITY)
70
71 #   define GADGET_CLUSTER_PLUGIN_EXPORT(__type)      __attribute__ ((visibility("default"))) __type
72 #   define GADGET_CLUSTER_PLUGIN_EXPORT_CLASS        __attribute__ ((visibility("default")))
73 #   define GADGET_CLUSTER_PLUGIN_EXPORT_DATA(__type) __attribute__ ((visibility("default"))) __type
74 #   define GADGET_CLUSTER_PLUGIN_IMPORT(__type)      __type
75 #   define GADGET_CLUSTER_PLUGIN_IMPORT_DATA(__type) __type
76 #   define GADGET_CLUSTER_PLUGIN_IMPORT_CLASS       
77
78 #   define GADGET_CLUSTER_PLUGIN_EXTERN(__type)         extern __attribute__ ((visibility("default"))) __type
79 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT(__type)      __attribute__ ((visibility("default"))) __type
80 #   define GADGET_CLUSTER_PLUGIN_EXTERN_DATA(__type)    extern __attribute__ ((visibility("default"))) __type
81 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT_DATA(__type) __attribute__ ((visibility("default"))) __type
82
83 #   define GADGET_CLUSTER_PLUGIN_CALLBACK
84 #   define GADGET_CLUSTER_PLUGIN_CALLBACK_DECL
85 #   define GADGET_CLUSTER_PLUGIN_STATIC_CALLBACK(__x) static __x
86
87 #else   /* UNIX (where this stuff is simple!) */
88
89 #   define GADGET_CLUSTER_PLUGIN_EXPORT(__type)      __type
90 #   define GADGET_CLUSTER_PLUGIN_EXPORT_CLASS
91 #   define GADGET_CLUSTER_PLUGIN_EXPORT_DATA(__type) __type
92 #   define GADGET_CLUSTER_PLUGIN_IMPORT(__type)      __type
93 #   define GADGET_CLUSTER_PLUGIN_IMPORT_CLASS
94 #   define GADGET_CLUSTER_PLUGIN_IMPORT_DATA(__type) __type
95
96 #   define GADGET_CLUSTER_PLUGIN_EXTERN(__type)         extern __type
97 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT(__type)      __type
98 #   define GADGET_CLUSTER_PLUGIN_EXTERN_DATA(__type)    extern __type
99 #   define GADGET_CLUSTER_PLUGIN_IMPLEMENT_DATA(__type) __type
100
101 #   define GADGET_CLUSTER_PLUGIN_CALLBACK
102 #   define GADGET_CLUSTER_PLUGIN_CALLBACK_DECL
103 #   define GADGET_CLUSTER_PLUGIN_STATIC_CALLBACK(__x) static __x
104
105 #endif  /* WIN32 || WIN64 */
106
107 #ifdef _GADGET_CLUSTER_PLUGIN_BUILD_
108 #   define GADGET_CLUSTER_PLUGIN_API(__type)    GADGET_CLUSTER_PLUGIN_EXPORT(__type)
109 #   define GADGET_CLUSTER_PLUGIN_CLASS_API      GADGET_CLUSTER_PLUGIN_EXPORT_CLASS
110 #   define GADGET_CLUSTER_PLUGIN_DATA_API(__type)       GADGET_CLUSTER_PLUGIN_EXPORT_DATA(__type)
111 #else
112 #   define GADGET_CLUSTER_PLUGIN_API(__type)    GADGET_CLUSTER_PLUGIN_IMPORT(__type)
113 #   define GADGET_CLUSTER_PLUGIN_CLASS_API      GADGET_CLUSTER_PLUGIN_IMPORT_CLASS
114 #   define GADGET_CLUSTER_PLUGIN_DATA_API(__type)       GADGET_CLUSTER_PLUGIN_IMPORT_DATA(__type)
115 #endif
116
117 #endif /* _GADGET_CLUSTER_PLUGIN_CONFIG_H_ */
Note: See TracBrowser for help on using the browser.