summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/PortableServer_include.pidl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/PortableServer_include.pidl')
-rw-r--r--TAO/tao/PortableServer/PortableServer_include.pidl42
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/PortableServer_include.pidl b/TAO/tao/PortableServer/PortableServer_include.pidl
new file mode 100644
index 00000000000..00894ac3bc9
--- /dev/null
+++ b/TAO/tao/PortableServer/PortableServer_include.pidl
@@ -0,0 +1,42 @@
+/**
+ * @file PortableServer_include.pidl
+ *
+ * $Id$
+ *
+ * @brief Include file for use in applications that need PortableServer.pidl.
+ *
+ * This file just includes PortableServer.pidl. The *C.h file generated from
+ * this is hand-crafted to itself include PortableServer.h instead of
+ * PortableServerC.h (which will produce a compiler error message if
+ * included directly). The PortableServer_includeC.h file can then be
+ * included directly and automatically by the IDL compiler when
+ * building the application.
+ *
+ * 1. Run the tao_idl compiler on the pidl file. The command used for
+ * this is:
+ *
+ * tao_idl -o orig -St -Sp -Sci -SS
+ * -Wb,export_macro=TAO_PortableServer_Export \
+ * -Wb,export_include="portableserver_export.h" \
+ * -Wb,pre_include="ace/pre.h"
+ * -Wb,post_include="ace/post.h"
+ * PortableServer_include.pidl
+ *
+ * 2. Then change this line in PortableServer_includeC.h:
+ *
+ * #include "PortableServerC.h"
+ *
+ * to
+ *
+ * #include "PortableServer.h"
+ */
+
+#ifndef _PORTABLESERVER_INCLUDE_IDL_
+#define _PORTABLESERVER_INCLUDE_IDL_
+
+#pragma prefix ""
+
+///FUZZ: disable check_for_include/
+#include "tao/PortableServer/PortableServer.pidl"
+
+#endif /* _PORTABLESERVER_INCLUDE_IDL_ */