Skip to content

Commit 88f44da

Browse files
committed
made MS Visual Studio happy by fake-DLL-exporting classes
quell warnings regarding possible class function conflicts inside and outside the DLL, hopefully the clients are happy too (not tested yet) these classes are in fact structs with only some trivial inline functions This change should not change any bahavior! ported from rt^3
1 parent 9b34d30 commit 88f44da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/brlcad/vector.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
namespace BRLCAD {
31-
struct Vector2D {
31+
struct BRLCAD_MOOSE_EXPORT Vector2D {
3232
double coordinates[2];
3333

3434
Vector2D(void) {
@@ -49,7 +49,7 @@ namespace BRLCAD {
4949
};
5050

5151

52-
struct Mapping2D {
52+
struct BRLCAD_MOOSE_EXPORT Mapping2D {
5353
Vector2D point;
5454
Vector2D delta;
5555

@@ -58,7 +58,7 @@ namespace BRLCAD {
5858
};
5959

6060

61-
struct Vector3D {
61+
struct BRLCAD_MOOSE_EXPORT Vector3D {
6262
double coordinates[3];
6363

6464
Vector3D(void) {
@@ -83,13 +83,13 @@ namespace BRLCAD {
8383
};
8484

8585

86-
struct Ray3D {
86+
struct BRLCAD_MOOSE_EXPORT Ray3D {
8787
Vector3D origin;
8888
Vector3D direction;
8989
};
9090

9191

92-
struct Curvature3D {
92+
struct BRLCAD_MOOSE_EXPORT Curvature3D {
9393
Vector3D minPrincipalDirection;
9494
double minPrincipalCurvature;
9595
double maxPrincipalCurvature;

0 commit comments

Comments
 (0)