diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-10 18:25:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-03-10 18:25:44 +0200 |
commit | f7c0be193ee729b8c591fd21b3378e88e79c7ac2 (patch) | |
tree | 40d96fa81570b4c1b8b66b546f4b5feaa72dba02 | |
parent | 615a33c8f9e03db07cd596b57129ab47baee5bc1 (diff) |
Define ODB_PLUGIN macro when compiling with plugin
-rw-r--r-- | odb/odb.cxx | 1 | ||||
-rw-r--r-- | odb/plugin.cxx | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/odb/odb.cxx b/odb/odb.cxx index 70fc8f2..fe6a0e4 100644 --- a/odb/odb.cxx +++ b/odb/odb.cxx @@ -52,6 +52,7 @@ main (int argc, char* argv[]) args.push_back ("-x"); args.push_back ("c++"); args.push_back ("-S"); + args.push_back ("-DODB_PLUGIN"); args.push_back ("-fplugin=" + plugin); for (int i = 1; i < argc; ++i) diff --git a/odb/plugin.cxx b/odb/plugin.cxx index b1faa32..a8b8ddf 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -41,10 +41,6 @@ int plugin_is_GPL_compatible; // TODO: // -// -// * Can plugin define a macro which can then be tested in the code? -// A wrapper that calls g++ with plugin can do that easily. -// // * Will need to disable as many warnings as possible. // // * How am I going to handle a case where the type of a private |