diff options
Diffstat (limited to 'TAO/TAO_IDL/driver/drv_preproc.cpp')
-rw-r--r-- | TAO/TAO_IDL/driver/drv_preproc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/driver/drv_preproc.cpp b/TAO/TAO_IDL/driver/drv_preproc.cpp index 51e9804590c..12806c1b1ae 100644 --- a/TAO/TAO_IDL/driver/drv_preproc.cpp +++ b/TAO/TAO_IDL/driver/drv_preproc.cpp @@ -582,6 +582,13 @@ DRV_add_include_path (ACE_CString& include_path, void DRV_cpp_post_init (void) { + char idl_version_arg[128]; + ACE_OS::sprintf (idl_version_arg, "-D__TAO_IDL_IDL_VERSION=%s", + idl_global->idl_version_.to_macro ()); + DRV_cpp_putarg (idl_version_arg); + + DRV_cpp_putarg ("-D__TAO_IDL_FEATURES=\"tao/idl_features.h\""); + // Add include path for TAO_ROOT/orbsvcs. char* TAO_ROOT = ACE_OS::getenv ("TAO_ROOT"); |