mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Fix compiler error when using Max SDK 2008.
This commit is contained in:
@ -84,4 +84,10 @@ typedef TCHAR MCHAR;
|
||||
#define INIT_CUSTOM_CONTROLS(instance)
|
||||
#endif
|
||||
|
||||
#if MAX_VERSION_MAJOR <= 10 // Max 2008
|
||||
#define GETNAME_RETURN_TYPE TCHAR*
|
||||
#else
|
||||
#define GETNAME_RETURN_TYPE const TCHAR*
|
||||
#endif
|
||||
|
||||
#endif // _PLASMA_MAXCOMPAT_H
|
@ -235,7 +235,7 @@ public:
|
||||
ReferenceTarget *Clone(RemapDir &remap = DEFAULTREMAP);
|
||||
virtual bool CheckCopyAttribTo(ICustAttribContainer *to) { return true; }
|
||||
|
||||
const TCHAR* GetName() { return (const TCHAR*)_T(fClassDesc->ClassName()); }
|
||||
GETNAME_RETURN_TYPE GetName() { return (GETNAME_RETURN_TYPE)_T(fClassDesc->ClassName()); }
|
||||
void DeleteThis() { delete this; }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user