1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 16:41:14 +02:00

Make it easier to enforce the requirement that module version string exactly matches Audacity version string, by directly including Audacity.h and using AUDACITY_VERSION_STRING.

This commit is contained in:
v.audacity
2011-03-14 02:22:41 +00:00
parent 98182821d6
commit 6b6b495021
2 changed files with 7 additions and 16 deletions

View File

@@ -13,6 +13,7 @@
#include <wx/wx.h>
#include "ScripterCallback.h"
//#include "../lib_widget_extra/ShuttleGuiBase.h"
#include "../../src/Audacity.h"
#include "../../src/ShuttleGui.h"
#ifdef NOT_DEFINED
@@ -177,7 +178,12 @@ int SCRIPT_PIPE_DLL_API ExtensionModuleInit(int ix)
wxString SCRIPT_PIPE_DLL_API GetVersionString()
{
return SCRIPT_PIPE_VERSION_STRING;
// Make sure that this version of the module requires the version
// of Audacity it is built with.
// For now, the versions must match exactly for Audacity to
// agree to load the module.
return AUDACITY_VERSION_STRING;
}
} // End extern "C"