Revision: 75399
http://sourceforge.net/p/brlcad/code/75399
Author: starseeker
Date: 2020-04-14 16:17:19 +0000 (Tue, 14 Apr 2020)
Log Message:
-----------
extern "C" needs to come first
Modified Paths:
--------------
brlcad/trunk/src/libbu/tests/dylib/plugin_1.cpp
brlcad/trunk/src/libbu/tests/dylib/plugin_2.cpp
Modified: brlcad/trunk/src/libbu/tests/dylib/plugin_1.cpp
===================================================================
--- brlcad/trunk/src/libbu/tests/dylib/plugin_1.cpp 2020-04-14 16:13:01 UTC
(rev 75398)
+++ brlcad/trunk/src/libbu/tests/dylib/plugin_1.cpp 2020-04-14 16:17:19 UTC
(rev 75399)
@@ -34,10 +34,11 @@
const struct dylib_plugin pinfo = { &pcontents };
-BU_DYLIB_EXPORT extern "C" const struct dylib_plugin *
-dylib_plugin_info()
-{
- return &pinfo;
+extern "C" {
+ BU_DYLIB_EXPORT const struct dylib_plugin *dylib_plugin_info()
+ {
+ return &pinfo;
+ }
}
Modified: brlcad/trunk/src/libbu/tests/dylib/plugin_2.cpp
===================================================================
--- brlcad/trunk/src/libbu/tests/dylib/plugin_2.cpp 2020-04-14 16:13:01 UTC
(rev 75398)
+++ brlcad/trunk/src/libbu/tests/dylib/plugin_2.cpp 2020-04-14 16:17:19 UTC
(rev 75399)
@@ -34,13 +34,13 @@
const struct dylib_plugin pinfo = { &pcontents };
-BU_DYLIB_EXPORT extern "C" const struct dylib_plugin *
-dylib_plugin_info()
-{
- return &pinfo;
+extern "C" {
+ BU_DYLIB_EXPORT const struct dylib_plugin *dylib_plugin_info()
+ {
+ return &pinfo;
+ }
}
-
// Local Variables:
// tab-width: 8
// mode: C++
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits