mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-05-05 08:37:29 +02:00
fixes #1937 RES_DIR macro is defined twice
This commit is contained in:
parent
71a94277a8
commit
9b1c98f0f4
@ -47,9 +47,6 @@
|
|||||||
/* prefix dir */
|
/* prefix dir */
|
||||||
#undef PREFIX
|
#undef PREFIX
|
||||||
|
|
||||||
/* init dir */
|
|
||||||
#undef RES_DIR
|
|
||||||
|
|
||||||
#define MANIFEST_MARKER "# files: "
|
#define MANIFEST_MARKER "# files: "
|
||||||
|
|
||||||
#undef HAVE_LOCALE_H
|
#undef HAVE_LOCALE_H
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
2011-01-25 vadim <vadim@netcitadel.com>
|
2011-01-25 vadim <vadim@netcitadel.com>
|
||||||
|
|
||||||
|
* src/fwbuilder/libfwbuilder-config.h.in: fixes #1937 "RES_DIR
|
||||||
|
macro is defined twice". Got rid of duplicate definition of this
|
||||||
|
macro.
|
||||||
|
|
||||||
* FWObject.cpp (updateNonStandardObjectReferences): see #1985
|
* FWObject.cpp (updateNonStandardObjectReferences): see #1985
|
||||||
added virtual function updateNonStandardObjectReferences() that is
|
added virtual function updateNonStandardObjectReferences() that is
|
||||||
supposed to update any references to objects stored as attributes.
|
supposed to update any references to objects stored as attributes.
|
||||||
|
|||||||
@ -12,6 +12,7 @@
|
|||||||
#include "fwbuilder/libfwbuilder-config.h"
|
#include "fwbuilder/libfwbuilder-config.h"
|
||||||
#include "fwbuilder/Tools.h"
|
#include "fwbuilder/Tools.h"
|
||||||
#include "fwbuilder/Resources.h"
|
#include "fwbuilder/Resources.h"
|
||||||
|
#include "fwbuilder/Constants.h"
|
||||||
#include "commoninit.h"
|
#include "commoninit.h"
|
||||||
|
|
||||||
|
|
||||||
@ -53,8 +54,8 @@ void init(char * const*)
|
|||||||
|
|
||||||
/* On Unix RES_DIR and LIBFWBUILDER_TEMPLATE_DIR are absolute paths */
|
/* On Unix RES_DIR and LIBFWBUILDER_TEMPLATE_DIR are absolute paths */
|
||||||
|
|
||||||
if (respath=="") respath = RES_DIR;
|
if (respath=="") respath = Constants::getTemplateDirectory();
|
||||||
librespath = RES_DIR;
|
librespath = Constants::getTemplateDirectory();
|
||||||
|
|
||||||
libfwbuilder::init();
|
libfwbuilder::init();
|
||||||
|
|
||||||
|
|||||||
@ -200,7 +200,6 @@ int main( int argc, char *argv[] )
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//respath = RES_DIR;
|
|
||||||
Resources res(full_res_path);
|
Resources res(full_res_path);
|
||||||
|
|
||||||
if (fwbdebug) qDebug("done");
|
if (fwbdebug) qDebug("done");
|
||||||
|
|||||||
@ -41,6 +41,7 @@
|
|||||||
#include "fwbuilder/AddressRange.h"
|
#include "fwbuilder/AddressRange.h"
|
||||||
#include "fwbuilder/Host.h"
|
#include "fwbuilder/Host.h"
|
||||||
#include "fwbuilder/Firewall.h"
|
#include "fwbuilder/Firewall.h"
|
||||||
|
#include "fwbuilder/Constants.h"
|
||||||
|
|
||||||
using namespace libfwbuilder;
|
using namespace libfwbuilder;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
@ -63,7 +64,7 @@ void ObjectMatcherTest::matchTest()
|
|||||||
FWObjectDatabase *db = new FWObjectDatabase();
|
FWObjectDatabase *db = new FWObjectDatabase();
|
||||||
|
|
||||||
XMLTools::UpgradePredicate up;
|
XMLTools::UpgradePredicate up;
|
||||||
db->load(string("test_data.fwb"), &up, string(RES_DIR));
|
db->load(string("test_data.fwb"), &up, Constants::getTemplateDirectory());
|
||||||
|
|
||||||
ObjectMatcher om;
|
ObjectMatcher om;
|
||||||
om.setRecognizeBroadcasts(true);
|
om.setRecognizeBroadcasts(true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user