1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Add different SetText values to MaxCompat header.

Restores compilation of Max 7 plugin, as its SetText expects
a non-const pointer.

Additionally, NotifyInfo should already be declared in notify.h.
This commit is contained in:
2014-04-21 08:07:43 -07:00
parent 58d79679d3
commit c3d8e7e161
4 changed files with 3 additions and 10 deletions

View File

@ -86,8 +86,10 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#if MAX_VERSION_MAJOR <= 10 // Max 2008
# define GETNAME_RETURN_TYPE TCHAR*
# define SETTEXT_VALUE_TYPE MCHAR*
#else
# define GETNAME_RETURN_TYPE const TCHAR*
# define SETTEXT_VALUE_TYPE const MCHAR*
#endif
// Old versions of Max define this as an integer, not a Class_ID

View File

@ -50,7 +50,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
class ActionCallback;
struct ActionDescription;
struct NotifyInfo;
typedef bool(*ActionCallbackFunc)(int);

View File

@ -44,14 +44,6 @@ class Class_ID;
class Interface;
class plMaxNode;
#include <maxversion.h>
#if MAX_VERSION_MAJOR >= 9
struct NotifyInfo;
#else
// Max headers are more minimalistic in pre-9 maxes
# include <notify.h>
#endif
class plComponentDlg
{
protected: