Skip to content

Commit

Permalink
xrPhysics: fix linkage internal virtal destructors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Jun 6, 2018
1 parent b9274fc commit 6ca8238
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xrPhysics/IColisiondamageInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class ICollisionDamageInfo
virtual bool GetAndResetInitiated() = 0;

protected:
#if defined(WINDOWS)
virtual ~ICollisionDamageInfo() = 0 {}
#elif defined(LINUX)
virtual ~ICollisionDamageInfo() = 0;
#endif
};
#endif
4 changes: 4 additions & 0 deletions src/xrPhysics/IElevatorState.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ class IElevatorState
virtual void NetRelcase(IPhysicsShellHolder* O) = 0;

protected:
#if defined(WINDOWS)
virtual ~IElevatorState() = 0 {}
#elif defined(LINUX)
virtual ~IElevatorState() = 0;
#endif
};
4 changes: 4 additions & 0 deletions src/xrPhysics/IPHCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class IPHCapture
virtual void Release() = 0;

protected:
#if defined(WINDOWS)
virtual ~IPHCapture() = 0 {}
#elif defined(LINUX)
virtual ~IPHCapture() = 0;
#endif
};
class CPHCharacter;
struct NearestToPointCallback;
Expand Down
5 changes: 5 additions & 0 deletions src/xrPhysics/IPHStaticGeomShell.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
class IPHStaticGeomShell
{
protected:
#if defined(WINDOWS)
virtual ~IPHStaticGeomShell() = 0 {}
#elif defined(LINUX)
virtual ~IPHStaticGeomShell() = 0;
#endif

// virtual void set_ObjectContactCallback (ObjectContactCallbackFun* callback);
};

Expand Down
4 changes: 4 additions & 0 deletions src/xrPhysics/iphysics_scripted.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ class iphysics_scripted_class
#ifdef _EDITOR
virtual ~iphysics_scripted_class() {}
#else
#if defined(WINDOWS)
virtual ~iphysics_scripted_class() = 0 {}
#elif defined(LINUX)
virtual ~iphysics_scripted_class() = 0;
#endif
#endif
};

namespace non_copy
Expand Down

0 comments on commit 6ca8238

Please sign in to comment.