mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
9160d824d8
commit
9bb1652ae4
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user