re-enable "safety hack"

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21854 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-11-29 07:32:39 +00:00
parent 9160d824d8
commit 9bb1652ae4
2 changed files with 7 additions and 9 deletions

View File

@ -10,10 +10,10 @@
#include <config.h>
// Needed to prevent the definition of the unnamed_Path macro
// Needed to prevent the definition of the unnamed_PathChanger macro
// in the header file.
#define PATH_C
#define PATHCHANGER_C
#include "support/Path.h"
#include "support/lyxlib.h"

View File

@ -53,14 +53,12 @@ private:
};
// To avoid the wrong usage:
// Path("/tmp"); // wrong
// Path p("/tmp"); // right
// PathChanger("/tmp"); // wrong
// PathChanger p("/tmp"); // right
// we add this macro:
///
// With boost 1.34 this is not usable anymore
//#ifndef PATH_C
//#define Path(x) unnamed_Path;
//#endif
#ifndef PATHCHANGER_C
#define PathChanger(x) unnamed_PathChanger;
#endif
// Tip gotten from Bobby Schmidt's column in C/C++ Users Journal
} // namespace support